jostylr / literate-programming-lib

The library component of literate-programming

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

if

jostylr opened this issue · comments

Allow for if to take in a boolean instead of just a flag.

Think about how to implement the else part?

Maybe an ifelse command that does ifelse a(condition, cmd, arg1, ...), a(condition 2, cmd, ...) ??

or an ifelse condiiton, cmd, arg1, ..., ?condition 2, cmd, arg, ....

with the escape of a question mark possible (?, \).

gonna go with the arrays, but also going to implement ?..(...) for a boolean evaluator so an argument approach could use booleans as switches, but that could still have conflicts. array is clean.