Skip to content
Forum Archive

The "if" command

4 posts

Karnov#

The "if" command

can someone create a !!very!! small tutorial about the "if" command?

it seems similar to the C++ one; but i am still learning that language

the expression help just doesnt cut it for me

i need "AVS 4 dummys"[sic] 😁
Jaheckelsafar#
variable = if( expression != 0 , value1 , value2 );

if the expression is true (not 0) variablr gets velue1, otherwise it gets value2.

It work like the ? operator in C. (if I remember it right)