Seite 1 von 1

Conversion string to boolean

Verfasst: Montag 11. Mai 2009, 19:26
von bufere
How can convert the string "0" and "1" to boolean off and on , for example to pilot an led light?

best regards

Roby

Re: Conversion string to boolean

Verfasst: Montag 11. Mai 2009, 22:03
von Mike D
for example use $Value and multiply by 5
ore use $ASC and Trigger with level set to 48.
A quick and dirty way is giving the caracter directly to the Trigger with level 0
char2bool.prj
(1.1 KiB) 456-mal heruntergeladen
Mike

Re: Conversion string to boolean

Verfasst: Dienstag 12. Mai 2009, 07:35
von bufere
Very good solutions.
Many tanks
Roby