#toggles flipped?

1 messages · Page 1 of 1 (latest)

somber palm
#

Is this a bug or is this me not doing the toggle?
The toggles are on and the values are off

const Staff_Verification = new ModalFormData();
                Staff_Verification.title('Title')
                Staff_Verification.textField('text field', 'Enter a text...')
                Staff_Verification.toggle('toggle')
                Staff_Verification.show(source).then(result => {
                    let Input = result.formValues[0];
                    let Toggle = result.formValues[1];
                    if (Input === 'password') {
                        source.tell('§¶§l§2Successful!')
                    } else source.tell('§l§¶§cIncorrect password!')
                    if (Toggle === false) return world.say('toggle on')
                    else if (Toggle === true) return world.say('toggle off')
                })
rapid kindle
somber palm
#

I added the default toggle but still same thing

rapid kindle
#

and typeof Toggel is boolean or not

#

lol

#

i see problem

#

look at lines with ifs

#

if false its on lol