Discuss Scratch

flutehamster
Scratcher
500+ posts

Modifying a boolean to have an output other than (true) or (false)

I have a couple theories -


  • Maybe altering the truth table? Can that be done?
  • Messing with the JSON so the input is the same as the output…
  • Nothing else…

The purpose of this is to allow a Cloud Var to accept characters besides 1234567890 and 1 {.}.

set [☁hack v] to [<<> and < >> ]

Gives you…

<(☁hack) = [false ]>

And it saves!

JOIN SPAM!
This is how many messages Comp09 has:
Clicky.
flutehamster
Scratcher
500+ posts

Modifying a boolean to have an output other than (true) or (false)

UPDATE: (I know it's early) I don't think the JSON is going to cut it.

JOIN SPAM!
This is how many messages Comp09 has:
Clicky.
Blank1234
Scratcher
500+ posts

Modifying a boolean to have an output other than (true) or (false)

Thats because True or False are considered values by most programming language

Did you know that “kaj” means “and” in Esperanto?


















Totally not for SEO:
https://scratch.mit.edu/projects/85467306/
https://scratch.mit.edu/projects/83099266/
https://scratch.mit.edu/projects/81628056/
https://scratch.mit.edu/projects/81562288/
https://scratch.mit.edu/projects/81462110/
https://scratch.mit.edu/projects/81436112/
https://scratch.mit.edu/projects/78896920/
https://scratch.mit.edu/projects/78863998/
https://scratch.mit.edu/projects/76577776/
https://scratch.mit.edu/projects/76459270/
https://scratch.mit.edu/projects/74797364/
https://scratch.mit.edu/projects/74085188/
https://scratch.mit.edu/projects/73150274/
https://scratch.mit.edu/projects/73112658/
https://scratch.mit.edu/projects/72484040/
https://scratch.mit.edu/projects/72737486/
https://scratch.mit.edu/projects/72410420/
https://scratch.mit.edu/projects/72378152/
https://scratch.mit.edu/projects/71910314/
https://scratch.mit.edu/projects/67826618/
https://scratch.mit.edu/projects/67882676/
https://scratch.mit.edu/projects/66909070/
https://scratch.mit.edu/projects/66925858/
https://scratch.mit.edu/projects/66420350/
https://scratch.mit.edu/projects/66062314/
https://scratch.mit.edu/projects/65564542/
https://scratch.mit.edu/projects/64828196/
https://scratch.mit.edu/projects/64286296/
https://scratch.mit.edu/projects/64283600/
https://scratch.mit.edu/projects/62386850/
https://scratch.mit.edu/projects/63907584/
https://scratch.mit.edu/projects/62785306/
https://scratch.mit.edu/projects/63767660/
https://scratch.mit.edu/projects/62676562/
https://scratch.mit.edu/projects/61948978/
https://scratch.mit.edu/projects/62521426/
https://scratch.mit.edu/projects/61074988/
https://scratch.mit.edu/projects/11658256/
https://scratch.mit.edu/projects/60640274/
WooHooBoy
Scratcher
1000+ posts

Modifying a boolean to have an output other than (true) or (false)

You can update your posts with the EDIT button.

So….
There's a fundamental problem with this.
Scratch is setting the cloud var to
True
This is very different than
"True"
Scratch converts the value to a string when you visit the cloudmonitor page.

considered harmful
flutehamster
Scratcher
500+ posts

Modifying a boolean to have an output other than (true) or (false)

That makes sense.

So
True
Isn't what's actually in the var, it's the value true.

I think.

JOIN SPAM!
This is how many messages Comp09 has:
Clicky.
WooHooBoy
Scratcher
1000+ posts

Modifying a boolean to have an output other than (true) or (false)

flutehamster wrote:

That makes sense.

So
True
Isn't what's actually in the var, it's the value true.

I think.
Exactly!

I think

considered harmful
flutehamster
Scratcher
500+ posts

Modifying a boolean to have an output other than (true) or (false)

Should I close this?

JOIN SPAM!
This is how many messages Comp09 has:
Clicky.
WooHooBoy
Scratcher
1000+ posts

Modifying a boolean to have an output other than (true) or (false)

No, wait a day.
Maybe somebody can prove us wrong

considered harmful
flutehamster
Scratcher
500+ posts

Modifying a boolean to have an output other than (true) or (false)

░░░░░░░░░░░░▄▄░░░░░░░░░
░░░░░░░░░░░█░░█░░░░░░░░
░░░░░░░░░░░█░░█░░░░░░░░
░░░░░░░░░░█░░░█░░░░░░░░
░░░░░░░░░█░░░░█░░░░░░░░
███████▄▄█░░░░░██████▄░
▓▓▓▓▓▓█░░░░░░░░░░░░░░█░
▓▓▓▓▓▓█░░░░░░░░░░░░░░█░
▓▓▓▓▓▓█░░░░░░░░░░░░░░█░
▓▓▓▓▓▓█░░░░░░░░░░░░░░█░
▓▓▓▓▓▓█░░░░░░░░░░░░░░█░
▓▓▓▓▓▓█████░░░░░░░░░█░░
██████▀░░░░▀▀██████▀░░░

JOIN SPAM!
This is how many messages Comp09 has:
Clicky.
Jonathan50
Scratcher
1000+ posts

Modifying a boolean to have an output other than (true) or (false)

It's not possible to change the output of a reporter/boolean to set a cloud var to anything other than numbers.
It's not hacked, those are boolean values and not actually strings, which ARE permitted in cloud variables (actually 0=false and 1=true, so they are still numbers). You can use hexadecimal instead of decimal. To use hexadecimal just prefix all your numbers with 0x and they will be treated as integers (you can store them in cloud vars, and you can multiply, divide, add and anything else although if you use maths it will return the corresponding decimal number).
So no

Not yet a Knight of the Mu Calculus.
flutehamster
Scratcher
500+ posts

Modifying a boolean to have an output other than (true) or (false)

Ah, I tried.

JOIN SPAM!
This is how many messages Comp09 has:
Clicky.

Powered by DjangoBB