#(Darwin) why the hell is this valid?
36 messages · Page 1 of 1 (latest)
(Darwin) why the hell is this valid?
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
If you want that any positive number returns true, you can check for its truthiness.
Not sure why a broken tag should return true?
I made a typo
flase
and it was running in the background for ages
Oh I see
Idk, I should close this thread I think
It's not a bug, it's just how if works right now
thaats weird cause for me it indeed is returning false, actually any random shit is returning false
did you tried it?
ye
test2:
type: task
debug: false
script:
- if 234324534:
- narrate done
wait im testing on outdated server, will test on another one
Content of Server Log Paste #119324: Denizen Debug Logs From... pasted 2024/01/09 07:14:24 UTC-08:00, Paste length: 1949 characters across 27 lines, Content: Java Version: 17.0.2Up-time: 50s
(line 27) if flase
If command passed, running block.
oh right its borky on newer version
🤯
Somebody of the devs should confirm is this a bug or not
If your build is older than this update #changelog message, than this isn't a bug
this isn't a bug, the post you linked is why
your tag evaluated to flase, which is truthy
well but could be breaking change since it has now different behaviour
only a breaking change if your if statements were not already evaluating to true/false, which would be spamming errors
true/false used to be required, now it's truthy/falsey, and reverting would break now-valid scripts
if anything, it could be a config option defaulting to truthy behavior. but i don't see that as a huge need
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@austere ibex
(also scripts written with truthy ifs would not be shareable if it was optional, which seems awkward to handle)
😔