You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yes! I finally worked this out with an issue i've been having for a while with conditional statements:
the offending statement: if (f-info_match_prev("scene")<4) 0.9 else 0.55 - pulse(p=3b,a=0.075,pw=2)
the fix: if (f-info_match_prev("scene")<4) 0.9 else (0.55 - pulse(p=3b,a=0.075,pw=2))
Easy workaround (enclose your blocks in parentheses).
I think correct behaviour should be that IF you did want a dangling operation at the end (i.e. it applies regardless of truth/falsity), you'd enclose the entire conditional statement in parentheses
e.g. (if (f-info_match_prev("scene")<4) 0.9 else 0.55) - pulse(p=3b,a=0.075,pw=2)
if true 10 else 5/2
evaluates as(if true 10 else 5)/2
, instead ofif true 10 else (5/2)
.The text was updated successfully, but these errors were encountered: