Fist of all, the blocks I will be using are the if
([scratchblocks]if<>then
end[/scratchblocks])
block,
the =
([scratchblocks]<>=<>[/scratchblocks])
block,
and the report
([scratchblocks]report[]::control cap[/scratchblocks])
block.
(and
[scratchblocks]<true::operators[/scratchblocks]
and
[scratchblocks]<false::operators[/scratchblocks] of course, for the report block)
THE AND BLOCK
[scratchblocks]
define <( bool1 ) and ( bool2 )>
if < (bool1) = [True] > then
if <(bool2) = [True]> then
report[True]::control cap
end
report[False]::control cap
end
report[False]::control cap
[/scratchblocks]
THE OR BLOCK
[scratchblocks]
define<(bool1) or (bool2)>
if <(bool1)=[True]> then
report[True]::control cap
end
if <(bool2)=[True]> then
report[True]::control cap
end
report[False]::control cap
[/scratchblocks]
THE NOT BLOCK
[scratchblocks]
define<not(bool)>
if<(bool)=[True]> then
report[False]::control cap
end
if<(bool)=[False]>then
report[True]::control cap
end
[/scratchblocks]
can't you just use just
[scratchblocks]
(bool)
[/scratchblocks]
for
[scratchblocks]
<(bool) = [true]>
[/scratchblocks]
The scratchblocks get messy when I do that
[scratchblocks]
if (bool) then
...
end
[/scratchblocks]
???
if (bool) then
...
end
also i thought you read my tutorial, why is the report block red and have a connector on the bottom?
It's just too complicated. If you can do it then great.
It's not too complicated, you just put the report block like you did, add "::", add "control" to say this is a control block, and then add "cap" to remove the connector on the bottom. Cap as in close the script, like cap in a bottle when you put the cap on you close the bottle.
[scratchblocks] report []::control cap [/scratchblocks]
report []::control cap
Thanks! How do I do oprators(For True and False)?
There's no way to have a perfectly remade true/false block, but a good workaround is
[scratchblocks]
true::operators boolean
[/scratchblocks]
<true::operators>
[scratchblocks]
<<true (::grey )::operators>::operators>
[/scratchblocks]
[scratchblocks]
<<true (:: grey) :: operators> :: operators>
<<(:: grey) false> :: operators>
[/scratchblocks]
that is amazing, I like how you did that.
Please don't necropost...
I thought I was on another topic. sorry!
Ok then
(@bh should close this btw)
What did sathvikrias say?
Seriously -_- I was mention that @bh should close this and ok to @sathvikrias
Well, was it a good necropost? Necroposting is only bad when it contributes nothing to the didcussion.