Discuss Scratch

liamman123
Scratcher
16 posts

True block

Is there a true block on scratch??
Please answer if you know
Thanks,
Liamman123
GunChleoc
Scratcher
500+ posts

True block

There is no true/false as such, but you can use 1/0 instead:

ifvariable=1 then
liamman123
Scratcher
16 posts

True block

Q

Last edited by liamman123 (June 2, 2015 18:50:28)

-Scratcher-
Scratcher
100+ posts

True block

not
Just like that gives you true
liamman123
Scratcher
16 posts

True block

Thanks
sayThanks :)for2secs
liamman123
Scratcher
16 posts

True block

Thanks So much
whenclickedsayU are Epicfor2secs
GunChleoc
Scratcher
500+ posts

True block

whenIreceivethankssayYou're welcome :)
deck26
Scratcher
1000+ posts

True block

-Scratcher- wrote:

not
Just like that gives you true
Might do but it's the sort of thing which you possibly can't always rely on staying that way.

If you really need something like that I'd use

1=1 true1=0 false
-Scratcher-
Scratcher
100+ posts

True block

deck26 wrote:

-Scratcher- wrote:

not
Just like that gives you true
Might do but it's the sort of thing which you possibly can't always rely on staying that way.

If you really need something like that I'd use

1=1 true1=0 false
Yes, you're right and I would never think about it in other programming languages, but in Scratch it's useful to do it, so it was just an idea Although your suggestion is a lot safer.
happyguy-_-
New Scratcher
2 posts

True block

deck26 wrote:

-Scratcher- wrote:

not
Just like that gives you true
Might do but it's the sort of thing which you possibly can't always rely on staying that way.

If you really need something like that I'd use

1=1 true1=0 false
that worked
deck26
Scratcher
1000+ posts

True block

happyguy-_- wrote:

deck26 wrote:

-Scratcher- wrote:

not
Just like that gives you true
Might do but it's the sort of thing which you possibly can't always rely on staying that way.

If you really need something like that I'd use

1=1 true1=0 false
that worked
No need to necropost. Hopefully most scripts provided as solutions will work!
-GUI--CUI-
Scratcher
100+ posts

True block

whenistruewhenistrue

Last edited by -GUI--CUI- (Oct. 27, 2020 10:09:34)

nirajanbs
Scratcher
17 posts

True block

-GUI--CUI- wrote:

whenistruewhenistrue
where
where did u get those when <> is true block?
owilson_CO2
Scratcher
8 posts

True block

nirajanbs wrote:

-GUI--CUI- wrote:

whenistruewhenistrue
where
where did u get those when <> is true block?


What is that a old block?
deck26
Scratcher
1000+ posts

True block

owilson_CO2 wrote:

nirajanbs wrote:

-GUI--CUI- wrote:

whenistruewhenistrue
where
where did u get those when <> is true block?


What is that a old block?
Please try to avoid necroposting.

This never existed that I'm aware of and seems unlikely. It would be confusing - would it only start when the boolean changed from false to true or would the script restart when it finished if the boolean was still true? Doesn't feel like it would really fit the way Scratch normally works.

Last edited by deck26 (Oct. 12, 2021 07:58:58)

Powered by DjangoBB