Closed CezaryDanielNowak closed 10 years ago
Use Parentheses and a conditional operator (not '=' use '==' or '===' ...) like in http://mammouth.wamalaka.com/#try:{{%0Aif%28!result%20%3D%3D%20someVar%29%20%0A%20%20sdfsdf%0A}}
I'm trying to achieve something like this:
{{
something ->
return(rand(0,3))
if !test = something()
echo('sorry, the result is 0')
return(false)
echo 'bravo! your result is ' test
}}
It's possible now, but in longer notation: if !(test = something())
yes, I hope that you are seen my comment in #18, but if you have any suggestions, be free to comment and open issue
you should use not operator Your example explain that.
works ok but this gives error: