Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Conditional Statements for RakuScript #33

Open
theludovyc opened this issue Mar 25, 2022 · 1 comment
Open

Add Conditional Statements for RakuScript #33

theludovyc opened this issue Mar 25, 2022 · 1 comment
Labels
proposal proposal how improve Rakugo RakuScript Rakugo Scripting Dialogue Langue

Comments

@theludovyc
Copy link
Collaborator

if condition(s):
  #code
elif condition(s):
  #code
else:
  #code

condition(s) : conditon [or/and condition]*repeat

@theludovyc theludovyc changed the title Add Conditional Statements in rkscript Add Conditional Statements for RakuScript Mar 25, 2022
@Jeremi360
Copy link
Contributor

Jeremi360 commented Mar 25, 2022

Our ifs should support in ifs, it makes programming so much easier (moved to issue #53 ):

if x in [a, b, c]:
# is the same as
if x == a or x == b or x == c:

@Jeremi360 Jeremi360 added the RakuScript Rakugo Scripting Dialogue Langue label May 1, 2022
@Jeremi360 Jeremi360 added the proposal proposal how improve Rakugo label Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal proposal how improve Rakugo RakuScript Rakugo Scripting Dialogue Langue
Projects
None yet
Development

No branches or pull requests

2 participants