From 80ac9689dd5c4d84ae3d104d2e5231fa0e34f853 Mon Sep 17 00:00:00 2001 From: Kaiser <54066349+Ihre-Kaiserliche-Hoheit@users.noreply.github.com> Date: Thu, 16 Dec 2021 10:03:50 +0100 Subject: [PATCH] Added some examples --- sm-test-files/hello.sm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sm-test-files/hello.sm b/sm-test-files/hello.sm index c88080f..94687d6 100644 --- a/sm-test-files/hello.sm +++ b/sm-test-files/hello.sm @@ -29,6 +29,10 @@ && $ means true && € means false +&& == is implied in if conditions + +&& = is equal to === + && if condition is true log the text ¿??$/condition\ | ¡<=/"condition was true"! @@ -44,5 +48,12 @@ #sub /\ | ( && This code prints hello world - !¿??$? <= "Hello World"!; + ¿??$? | + !<= "Hello World"!; +) + +#sub /\ | ( + && This code checks if input is equal to another string + ¿??$ /=> "hello"\? | && Takes input and compares to string + !<= "World!"!; Prints World! )