Page 1 of 1

Want to have simSetBooleanSignal and simGetBooleanSignal

Posted: 01 Nov 2015, 19:03
by jacobi
Dear Copellia,

It is noted that there are three types of signals and there are APIs as follows.
simSetIntegerSignal, simSetFloatSignal, simSetStringSignal
simGetIntegerSignal, simGetFloatSignal, simGetStringSignal

I wonder if it is possible to have simSetBooleanSignal and simGetBooleanSignal?
I think it is also important to have global variables of boolean type. Thank you!

Re: Want to have simSetBooleanSignal and simGetBooleanSignal

Posted: 02 Nov 2015, 10:20
by coppelia
Hello Jacobi,

the reason why simSetBooleanSignal/simGetBooleanSignal is not supported is because you can use an interger signal also for boolean values, i.e. 0 is false, !=0 is true.

Cheers