Front Page Posts
All Posts
All Comments
Wiki Revisions
Composition Repository
if a<b then a=0
'a' is float numbers. how to do that in qc math expression pacth?
thanks for the help!
hello,
You can use the ternary operator, it works inside mathematical expression :
a < b ? 0.0 : a
this means "if a < b then return 0.0 otherwise return a".
Or something like : !(a<b) * a
Bye !
Thanks! I will give it a try soon!
it work perfect！
hello,
You can use the ternary operator, it works inside mathematical expression :
a < b ? 0.0 : a
this means "if a < b then return 0.0 otherwise return a".
Or something like : !(a<b) * a
Bye !
Thanks! I will give it a try soon!
it work perfect！