Page 1 of 1

switch from int to bool

Posted: 02 May 2018, 23:27
by hsen284
Hey!
I have a question about how to switch from integer to boolean
To clarify, for example: when my int is {0} so the bool is {no}, but when the int is 100 so the bool with be {yes}.

Re: switch from int to bool

Posted: 03 May 2018, 08:54
by lerou
Put your int into a bool variable. 0 = false, everything else = true.

Re: switch from int to bool

Posted: 13 Jun 2018, 09:19
by Eric_RD
Or use Bool Expression
Connect your int to "A"
and change the Expression to

Code: Select all

A==100
(Bool Expressions are quite nice because they also give you two event outputs (True, False) with every validation. This saves a lot of event nodes and inverts. Plus You don't have to write the output values like "A==100?1:0" in an Int Expression because there is just true and false)