summaryrefslogtreecommitdiffstats
path: root/src/example.txt
diff options
context:
space:
mode:
authorAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-11-06 16:40:12 +0000
committerAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-11-06 16:40:12 +0000
commitd3046e3b1481cf6d190b8fcb814985e29852b5eb (patch)
tree0f0f966c017a09c74f032253bb6c4df400ee50df /src/example.txt
parent0c54d7f8cb4b17d80ed21f7a9916ad27a13e34ed (diff)
downloadesotericFORTRAN-d3046e3b1481cf6d190b8fcb814985e29852b5eb.tar.gz
esotericFORTRAN-d3046e3b1481cf6d190b8fcb814985e29852b5eb.zip
Working if/else statements (very basic and unstable)
Diffstat (limited to 'src/example.txt')
-rw-r--r--src/example.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/example.txt b/src/example.txt
index a9202e5..94a8091 100644
--- a/src/example.txt
+++ b/src/example.txt
@@ -1,4 +1,8 @@
var :: a
a=5
-a=a+1
+if a<2 then
+a=a+5
+else
+a=a-3
+endif
print a