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

For ... else working #200

Merged
merged 1 commit into from Mar 1, 2019
Merged

For ... else working #200

merged 1 commit into from Mar 1, 2019

Conversation

mingwho
Copy link
Contributor

@mingwho mingwho commented Feb 28, 2019

Issue is here #49
Now we will be able to run some code if the list in for is empty

users = db.query("SELECT students WHERE age > 20")

for user in users {
  print(user)
} else {
  print("We don't have students above the age of 20")
}

Copy link
Collaborator

@odino odino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done :)

@odino odino added this to the 1.3.x milestone Feb 28, 2019
@odino
Copy link
Collaborator

odino commented Feb 28, 2019

Once tests are passing we can merge. Well done :)

@mingwho
Copy link
Contributor Author

mingwho commented Feb 28, 2019

Muchas gracias :)

@odino odino merged commit 873423e into abs-lang:1.3.x Mar 1, 2019
@mingwho mingwho mentioned this pull request Mar 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants