Kray3 SDK/Logic operations

From Kray
Jump to: navigation, search
Language ›

Logic operators

And (&) Or (|), Not (!) logic operators can be used on doubles.

<include highlight="kray3" src="/pub/kray3_script/operators/operators10.kray"></include>{{#ifeq: 1|1|

Run in KrayLive|}}

Comparision

You can use comparision operators < > <= >= on doubles, strings.

<include highlight="kray3" src="/pub/kray3_script/operators/operators8.kray"></include>{{#ifeq: 1|1|

Run in KrayLive|}}

You can use comparision operators == != on doubles, strings, vectors and axes.

<include highlight="kray3" src="/pub/kray3_script/operators/operators9.kray"></include>{{#ifeq: 1|1|

Run in KrayLive|}}