Conditions

case value
// after case, all blocks can follow in any order

Blocks

of 10 11
…
end

of “string”
…
end

ofnot 10 11
…
end


if 1<0
// after if, all blocks can follow in any order

Blocks

if.then
…
end

if.else
…
end

then … end
else … end
if.true … end
if.false … end

Different conditions for different types

// for boolean expressions (conditions -> 1<0 or 10=mylength)
if condition … // or ifall condition … // a and b and …
ifnot condition … // or ifnotall condition … // ¬a and ¬b and …
ifone condition … // a or b or …
ifnotone condition … // ¬a or ¬b or …

// for values
ifzero 0 <0,0> …
ifnotzero 1 <2,0> …
ifsmaller 1 2 …
ifequal 2 2 …
ifbigger 5 3 …

// for strings or variables
ifempty string …
ifnotempty string …
ifsame string …
ifnotsame string …
//
ifcontain pattern strings … // ifallcontain pattern strings …
ifnotcontain pattern strings … // ifnotallcontain pattern strings …
ifonecontain pattern strings …
ifnotoneconatin pattern strings …
//
ifpart string patterns … // ifallpart string patterns …
ifnotpart string patterns … // ifnotallpart string patterns …
ifonepart string patterns …
ifnotonepart string patterns …

// for files and dirs
ifexists file …
ifnotexists file …
ifzero.filesize file
ifsmaller.filesize file size
ifequal.filesize file size
iffilesize file size
ifbigger.filesize file size