diff --git a/doc-surrealdb_versioned_docs/version-latest/surrealql/statements/ifelse.mdx b/doc-surrealdb_versioned_docs/version-latest/surrealql/statements/ifelse.mdx index f5c854dd2..8e1653bdf 100644 --- a/doc-surrealdb_versioned_docs/version-latest/surrealql/statements/ifelse.mdx +++ b/doc-surrealdb_versioned_docs/version-latest/surrealql/statements/ifelse.mdx @@ -95,7 +95,7 @@ LET $num = 9; // Original syntax LET $odd_even = - IF $num / 2 = 0 THEN + IF $num % 2 = 0 THEN "even" ELSE "odd" @@ -103,7 +103,7 @@ LET $odd_even = // New scope syntax LET $odd_even = - IF $num / 2 = 0 { "even" } + IF $num % 2 = 0 { "even" } ELSE { "odd" }; ``` @@ -189,4 +189,4 @@ ELSE IF $scope = 'user' } ELSE { SELECT * FROM unknown_scope_data } -``` \ No newline at end of file +```