Logical operators

Equal to

function main()

    var x = 12;
    var y = 12;

    if (x == y)
        printLn("equal");
    endif

endfunction

Not equal to

function main()

    var x = 12;
    var y = 11;

    if (x != y)
        printLn("not equal");
    endif

endfunction

Less than

function main()

    var x = 12;
    var y = 11;

    if (y < x)
        printLn("less than");
    endif

    if (y <= x)
        printLn("less than or equal to");
    endif

endfunction

More than

function main()

    var x = 12;
    var y = 11;

    if (x > y)
        printLn("more than");
    endif

    if (x >= y)
        printLn("more than or equal to");
    endif

endfunction

And

function main()

    var f : Bool = false;
    var t : Bool = true;

    if (f && t)
        printLn("true");
    else
        printLn("false");
    endif

endfunction

Or

function main()

    var f : Bool = false;
    var t : Bool = true;

    if (f || t)
        printLn("true");
    else
        printLn("false");
    endif

endfunction

Xor

Note

Coming soon: support for xor.