Skip to content
Lumpology
Menu
  • FC-Standard & Patchwork Documentation
    • FC-Standard & Patchwork Documentation
    • Core Libraries
    • Tutorials & Examples
  • Forum
  • Accounts
    • Register
    • Login
Menu

fc-c

[*c] Control Stream

  • +case
  • +if
  • +goto
  • +loop
  • +while
  • +for
  • c* / ~~~*

Quick Example:

/# Store int value = 0
;#*v|+store|_int|value|n#0|_ret|v*
/#Assign point looppoint
@#looppoint
/# Exit *c stream when passed
~~~*
/# Output value
;#*i|+output|_var|_int|value|_end|_ret|i*

/# Add +1 to value
;#*m|+cal|_int|value|++|_ret|m*

/# Check if value == 101 and go to exitpoint if true
;#*c|+case|_int|value|n#101|exitpoint|_ret
/# Else go to to looppoint
+goto
looppoint

/#declare exit point
@#exitpoint
/# exit all streams just in case with universal exit point
~~~*
/# exit index
?*
© 2023 Lumpology | Powered by Minimalist Blog WordPress Theme