#If statement should not return a boolean

8 messages · Page 1 of 1 (latest)

tame canyon
#

Few days ago, I asked for soem blinking stuff and you gave me a if formula. It is working ingame but not on blockbench, so I opened an issue, and they told me that shouldn't on optifine:
https://github.com/JannisX11/blockbench-plugins/issues/451

idk, I have so little coding knowledge from school long time ago, but for me it just made sense a if statement would return True or False... 🤷‍♂️

GitHub

"pupil.visible": "if(var.blink>0.7&&var.blink2>0.5, false, true)", In the minecraft CEM animation editor, this prevent animations preview, but in game this line wo...

unkempt garnet
#

When did I send you this

#

Was this the one where I said out could be simplified if it returns true/false

#

Either way that is news to me that an if can't return boolean

#

I see ewan gave you a corrected formula already

#

I'll have to add this to the list of differences

tame canyon
unkempt garnet
#

I'll have to keep it in mind going forwards, ewan seems to have it covered I the github issue however