summaryrefslogtreecommitdiff
path: root/game/01_init.rpy
diff options
context:
space:
mode:
Diffstat (limited to 'game/01_init.rpy')
-rw-r--r--game/01_init.rpy7
1 files changed, 7 insertions, 0 deletions
diff --git a/game/01_init.rpy b/game/01_init.rpy
index 15e8b2a..0a71d63 100644
--- a/game/01_init.rpy
+++ b/game/01_init.rpy
@@ -129,6 +129,13 @@ init -3 python:
time.sleep(delta)
return
+ # IF Then Else (IFTE)
+ def ifte(ifs, then, elses):
+ if (ifs):
+ return then
+ else:
+ return elses
+
# Global classes
# We need to override standard list method. Original by Triptych (stackoverflow)