The problem is, I need to be able to calculate like if sign(x) = sign(y) then A else B. And I like to be effektive, so trying to keep things short
After Posting, I exactly figured the workaround of Zhon, that works well of course, since I only need the function for just one value.
If I needed the function often in the script, I might use monitz87`s solution, though I am not sure how to do that in an effective way. I think that could become a bit complex, which makes it only worth to implement, if you need it all the time for a lot of different variables. Still a great solution, also I did not know at all, you could do that. So this Answer was very, very useful
Thanks for the quick and helpful replies!
The bottom line is, whenever you are 'coding' in construct, there will be some times when you will think to yourself "god, how I wish I could just use javascript/python/C#/whateverlanguage and just tell the engine exactly what I want to do". AFAIK, the engine has a workaround for most of these cases. Scirra is working towards a Framework that will allow developers to never hit that hurdle, but in the meantime, you can stick with what you've got.
As far as workarounds go, implementing your own sign expression as a Function is pretty straightforward, although I fully understand how just having sign(x) as a system expression would save you a lot of time