"IF" how change a script with a boolean

Hi,
Is there an “IF” node that has one input and two outputs?
I want to be able with boolean to execute a script so true but if it is false a different script.

How to do this ?

image

Just feed script 1 into true and script 2 into false. :slight_smile:

Hi @David_TESSON,

Is this what you’re after?

Boolean_Script_1or2.dyn (16.1 KB)

I don’t understand.
For me, both script will start. I don’t search to have a boolean result (0/1, True/False,…) but a different way if ture or false.
I think it’s not possible in dynamo. it’s too linear.

You might be able to if you wrap each script within a function
blnIf_2020-09-28_01-01-48
blnIf.dyn (6.8 KB)

scope if was built for this purpose -

1 Like