Itoo Software Forum
RailClone => RailClone Pro (*) => Topic started by: suppenhuhn on March 06, 2020, 04:55:45 PM
-
Hi!
I'm trying to get it managed how to trigger multiple changes within my RailClone object with only Boolean Parameter.
By that bool-parameter i'd like to trigger:
- Multiple Selector nodes to switch their index from 1 ( bool=false ) to 2 ( bool = true )
- A Sequencenode ( 2 Elements A + B ) order from A/B ( bool=false ) to B/A ( bool = true )
- To "inverse" the bool for i.a turning on/off a object form object-on ( bool=false ) to object-off ( bool = true )
- or instead of the point above: a conditional check when bool == true then turn off objects A, B, C and turn on objects D, E, F
Best solution would be when the conditional operator could handle boolean inputs as well !!
I'd appreciate any hint where i should look into or what tutorial should i check out ... or..or..or :)
-
Hi
if I understand correctly, let's try this one for a start:
-
Hi
if I understand correctly, let's try this one for a start:
You did !!
The arithmetic expression + sequence into a selector was the key!
Thank you very much 8)
-
Glad to help.
-
But one more question:
When i'd like to "inverse" the boolean value trying to use this expression i got a error:
if (Input1 == 0 ) {
return
1;
}
if (Input1 == 1 ) {
return
0;
}
-
it should go like this:
RETURN
If(input1==0,1,0);
or
RETURN
if(input1==true,false,true);
-
MERCI !!! Do i read it right: if input1 is 0 -> return 1 else return 0
Would be awesome when the expressions could handle javascript code
-
Yes, You are reading right.
Some useful documentation:
https://docs.itoosoft.com/railclone/style-editor/operators#Operators-Arithmetic