Ifthen

From Esolang
Jump to navigation Jump to search

Ifthen is an uncomputable esolang invented by User:None1.

Syntax

Ifthen's syntax is:

If(<Statement>) Then Do All The Things Below{
    <Thing>;
    ... # More things
}

Note that the statement and the things can be anything!

You can even do something impossible, like:

If(One plus One Equals To Two) Then Do All The Things Below{
    Clear The Universe;
    Prove that a square is a circle;
    qowoejdbxdjdidjxnxjdidixn;
    Become a Chicken;
}

Ifthen is case sensitive.

Example Programs

Hello World

If(True) Then Do All The Things Below{
    Print "Hello World!" to the Console;
}

Quine

If(True) Then Do All The Things Below{
    Make this Program a Quine;
}

Truth Machine

If(True) Then Do All The Things Below{
    Read Integer A;
}
If(A=0) Then Do All The Things Below{
    Print A to the Console;
}
If(A==1) Then Do All The Things Below{
    Print 1 to the Console Infinitely;
}

It can be seen that Ifthen can correctly understand both = and ==

Easier Truth Machine

If(True) Then Do All The Things Below{
   Truth Machine;
}

Non Existent

This language is non-existent because it can do anything.

See Also