Regular API function

simGetBoolParameter / sim.getBoolParameter (remote API equivalent: simxGetBooleanParameter)

Description Retrieves a boolean value. See the Boolean parameter identifiers. See also sim.setBoolParameter, sim.getInt32Parameter, sim.getFloatParameter, sim.getArrayParameter and sim.getStringParameter.
C synopsis simInt simGetBoolParameter(simInt parameter)
C parameters
C return value
value of the parameter (0 or 1) or -1 in case of an error
Lua synopsis boolean boolState=sim.getBoolParameter(number parameter)
Lua parameters
Same as C-function
Lua return values
boolState: value of the Boolean parameter, or nil in case of an error

All regular API functions on one page