fix scope bug in if statement

This commit is contained in:
William Bell
2025-08-10 22:14:06 +01:00
parent c71375c7a4
commit bbf8794dd5
4 changed files with 86 additions and 13 deletions

View File

@@ -1,4 +1,3 @@
let split(url) = do
let split = url.splitN("?", 2)
if (split.length != 2) return {path: split[0], query: {}}
else return {path: split[0], query: decodeURLQuery(split[1])}
let x = "hello"
if (x) term.log('bruh')
else term.log('not bruh')