Skip to content

Boolean operators & | !

Submitted by Marton Danoczy

Assigned to Nobody

Link to original bugzilla bug (#272)
Version: 3.0

Description

Hi,

unfortunately, it is not possible to use boolean operators on boolean expressions. It would be great to allow something such as:

x = (x>0 & y>0).select(x, 0); // or &&?

This issue can be worked around by:

x = (y>0).select((x>0).select(x, 0), 0);

but adding boolean operators would make code a lot more readable. Or maybe even faster?

(possibly blocks or is blocked by bug #97)

Blocking

#585