RosettaCodeData/Task/Conditional-structures/BQN/conditional-structures-1.bqn

12 lines
565 B
BQN
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
If {𝕏𝕎@}´ # Also Repeat
IfElse {cTF: cFT@}
While {𝕩{𝔽𝔾𝔽_𝕣_𝔾𝔽𝔾𝕩}𝕨@}´ # While 1‿{... to run forever
DoWhile {𝕏@ While 𝕨𝕩}´
For {ICPA: I@ WhileC,PA}
# Switch/case statements have many variations; these are a few
Match {𝕏𝕨}´
Select {(𝕩)(1𝕩)@}
Switch {c𝕩 ma<˘21𝕩 (aC)m@}
Test {fn{CA𝕊e:CAE}´𝕩Fn@}