ox

The Ox programming language, compiler and tools (WIP)
Log | Files | Refs | README | LICENSE

ex-cond-adv1.ox (343B)



// conditional to be handled

int main() {
    print("did it work?");
    str password = "123";
    if (password == "1234") {
        print("it worked!");
        return 0;
    } else {
        if(password == "123") {
            print("the else worked!");
            return 1;
        } else {
            print("booboo");
        }
    }
}