Skip to content

Commit

Permalink
Update ifelse.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekwuno authored Jul 29, 2024
1 parent ad8cd9b commit 73b7ff6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ LET $num = 9;
// Original syntax
LET $odd_even =
IF $num / 2 = 0 THEN
IF $num % 2 = 0 THEN
"even"
ELSE
"odd"
END;
// New scope syntax
LET $odd_even =
IF $num / 2 = 0 { "even" }
IF $num % 2 = 0 { "even" }
ELSE { "odd" };
```

Expand Down Expand Up @@ -189,4 +189,4 @@ ELSE IF $scope = 'user'
}
ELSE
{ SELECT * FROM unknown_scope_data }
```
```

0 comments on commit 73b7ff6

Please sign in to comment.