Help with Conditional Statement (IF)

Can I build an “If” statment with thre conditions, I am gonna try to explain the problem, I have a number slider from 1 to 3 and my problem is that I want to get these results: if its 1 than it should be 0, if its 2 it should be 1 and if its 3 it should be 2.
I can do it only with two condtions becaus it works with true or false but with three I can not figuer it out.

1 Like

Hi @GhOssT

Like this?

Something like this:

"
input = IN[0]
OUT = input - 1
";
1 Like

thnx guys it works @architectcoding @Kulkul @_Vijay

1 Like