Welcome to the Creatures Wiki! Log in and join the community.

Editing DOIF

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 13: Line 13:
 
where .. indicates a code block for execution under conditions.
 
where .. indicates a code block for execution under conditions.
  
DOIF blocks can also be "[https://en.wikipedia.org/wiki/Nesting_(computing) nested]". [https://web.archive.org/web/20201026002851/https://discoveralbia.com/2015/06/solving-c1-caos-with-nested-doif-statements.html C1 discussion of nested DOIF] [https://creaturescaves.com/dev.php?section=Advice&view=3521 C3/DS discussion of nested DOIF]
+
DOIF blocks can also be "[https://en.wikipedia.org/wiki/Nesting_(computing) nested]". [https://web.archive.org/web/20201026002851/https://discoveralbia.com/2015/06/solving-c1-caos-with-nested-doif-statements.html C1 discussion of nested DOIF] [http://creaturescaves.com/dev.php?section=Advice&view=3521 C3/DS discussion of nested DOIF]
  
 
It is generally more efficient to use ELIF rather than several DOIF-ENDI pairs after each other, as the engine usually runs 5 commands per [[TICK]] (unless [[INST]] is used).
 
It is generally more efficient to use ELIF rather than several DOIF-ENDI pairs after each other, as the engine usually runs 5 commands per [[TICK]] (unless [[INST]] is used).

All contributions to Creatures Wiki are considered to be released under the CC-BY-SA and GFDL (see Creatures Wiki:Copyrights for details).

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)