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

Documentation: IF ELSE statment rule error #143

Closed
2 tasks done
syf20020816 opened this issue Dec 3, 2023 · 1 comment
Closed
2 tasks done

Documentation: IF ELSE statment rule error #143

syf20020816 opened this issue Dec 3, 2023 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@syf20020816
Copy link

Description

IF ELSE rule in offical

IF @condition {
	@expression
}
ELSE IF @condition {
	@expression ...
}
// look here
ELSE
	@expression {
}

correct

ELSE {
	@expression
}

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@syf20020816 syf20020816 added the documentation Improvements or additions to documentation label Dec 3, 2023
@tobiemh tobiemh transferred this issue from another repository Dec 14, 2023
@Ekwuno
Copy link
Contributor

Ekwuno commented Jan 16, 2024

The structure of the IF Else statement has been updated in newer versions. See here https://docs.surrealdb.com/docs/surrealql/statements/ifelse

@Ekwuno Ekwuno closed this as completed Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants