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

run code: if variable match #23

Open
hchiam opened this issue Apr 22, 2018 · 1 comment
Open

run code: if variable match #23

hchiam opened this issue Apr 22, 2018 · 1 comment
Labels
bug Something isn't working enhancement New feature or request important

Comments

@hchiam
Copy link
Owner

hchiam commented Apr 22, 2018

a = 1
if 1 equals a
say hi

should output

"hi"

see #9

@hchiam hchiam added bug Something isn't working enhancement New feature or request important labels Apr 22, 2018
@hchiam
Copy link
Owner Author

hchiam commented Apr 30, 2018

Rename these as 2 variables: isAfterIf[1] === isAfterIf[2]
Process those 2 variables like so: codeVariables.includes(variableName)
And fill local hashtable: variableValues = {}; // e.g. {a:1,b:2}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request important
Projects
None yet
Development

No branches or pull requests

1 participant