I've been dragging my feet a bit with the scripting language in GH. I wrote it myself but it's not really something I want to keep on supporting as there seem to be better options available. However, switching to those will take a lot of work, especially as I cannot break syntax.
I can probably add an If() function, but for advanced conditionals I'll need to seriously rethink this whole approach.
but you could just do the same thing with a C#/VB component. i think thats what is great about those components you can write something simple like a if statement or as complex as you want