EasyScript

From Esolang
Jump to navigation Jump to search

EasyScript is an esolang by User:A

variable:value sets variable as value(string or integer)
$var prints the variable's value.
%var set the variable as input(Strings must be inputted with quotation marks)
+
-
do math. For example:
    x:4,Jerome:x-2,

sets x as value 4 and Jerome as value 2 (4-2). Also:

    fruit:"fly",printer:"paper",sticky:fruit+printer,

sets fruit as value "fly", printer as value "paper", and sticky as value "flypaper"(word math only works with +. Strings are enclosed by "s).

condition?do something, If the condition is true, do something
condition:do something, Repeat while the condition is true.

Conditions have three parts, two compared values referenced by their names and a comparison which can be:

< is less than
= is equal to