From Esolang
Jump to navigation Jump to search

Is the <linesToSkip> allowed to negative? If you want to make a loop then it should be allow --Zzo38 (talk) 17:50, 17 July 2016 (UTC)

Yes, actually. <linesToSkip> parameter in if-s and if-q can be used as a negative number, just not a decimal. -1 goes up one line, and goes down one line before parsing, causing it to go up and back down. The simplest infinite loop I can think of is "push 1" "if-s -2 1", as it will continually push 1, and go up to push 1. Remember that ifs pop values and tosses them away, so you have to re-push the value you check for. Darkrifts (talk) 04:37, 19 July 2016 (UTC)