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

Is it possible to have conditions for the if statements? #59

Open
vladyslav2 opened this issue Mar 18, 2024 · 1 comment
Open

Is it possible to have conditions for the if statements? #59

vladyslav2 opened this issue Mar 18, 2024 · 1 comment

Comments

@vladyslav2
Copy link

Hello!
Great work!

but can you tell if thats possible to have have conditional statements for the if / else?

if .a eq 100
 p a is equal 100
if .b gt 100
 p b is greater than 100

I cannot find any example and cannot figure out how to do it

@BosNaufal
Copy link

BosNaufal commented Apr 8, 2024

Hey @vladyslav2 ,

I came across this code snippet on GitHub that might be helpful for your situation: https://github.com/Joker/jade/blob/master/testdata/v2/case.jade. It's under the testdata folder. Let me know if this looks useful.

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

No branches or pull requests

2 participants