Search
Setup for Free
⛄R/S
⛄ R74n / Sandboxels
•
2y ago
nousernamefound
if (true == true){ } else { }
if
(true
=
= true
)
{
} else
{
}
⛄ R74n / Sandboxels
Join
Sandboxels: Experiment with 500+ elements in your web browser. Chat about all R74n projects here!
13,895
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
N
nousernamefound
OP
•
5/2/24, 9:47 PM
replace true
=
= true with whatever ur if condition is
P
popular-magenta
•
5/2/24, 9:47 PM
ohh ty
!
S
sacred-rose
if (true == true){ } else { }
P
popular-magenta
•
5/2/24, 9:48 PM
Could I do several functions tho
?
N
nousernamefound
OP
•
5/2/24, 9:48 PM
what do you mean
N
nousernamefound
OP
•
5/2/24, 9:48 PM
tell me what you are trying to do
P
popular-magenta
•
5/2/24, 9:50 PM
A function that checks for gasoline and if it does then sets cycle count to 1
P
popular-magenta
•
5/2/24, 9:50 PM
I guess I COULD do it in same function tho
N
nousernamefound
OP
•
5/2/24, 9:50 PM
of course you can
N
nousernamefound
OP
•
5/2/24, 9:50 PM
why wouldnt you be able to
P
popular-magenta
•
5/2/24, 9:50 PM
Oh how
?
N
nousernamefound
OP
•
5/2/24, 9:50 PM
whats the other function
P
popular-magenta
•
5/2/24, 9:50 PM
eh idk what to name it
N
nousernamefound
OP
•
5/2/24, 9:50 PM
well what does it do
P
popular-magenta
•
5/2/24, 9:51 PM
Checks for a pixel of gasoline and deletes it if there is one
N
nousernamefound
OP
•
5/2/24, 9:51 PM
so
N
nousernamefound
OP
•
5/2/24, 9:51 PM
you wanna check for gasoline and set cycle to 1
N
nousernamefound
OP
•
5/2/24, 9:51 PM
and then check for gasoline AGAIN and delete it
?
P
popular-magenta
•
5/2/24, 9:51 PM
Yeah
P
popular-magenta
•
5/2/24, 9:51 PM
No ima remove the deletion
N
nousernamefound
OP
•
5/2/24, 9:51 PM
why not just do both in the same if
(
) thing
P
popular-magenta
•
5/2/24, 9:51 PM
Good idea
!
P
popular-magenta
•
5/2/24, 9:51 PM
lol
P
popular-magenta
•
5/2/24, 9:52 PM
Im stupid sometimes
!
S
sacred-rose
why not just do both in the same if() thing
P
popular-magenta
•
5/2/24, 9:53 PM
Wait how could I make it wait a tick between each if statement
P
popular-magenta
•
5/2/24, 9:53 PM
without delaying the tick function any more
?
N
nousernamefound
OP
•
5/2/24, 9:53 PM
um
N
nousernamefound
OP
•
5/2/24, 9:53 PM
one way you could do this
N
nousernamefound
OP
•
5/2/24, 9:53 PM
you could run the f irst if statement on every even tick
N
nousernamefound
OP
•
5/2/24, 9:53 PM
and the second if statement on every odd tick
N
nousernamefound
OP
•
5/2/24, 9:53 PM
does that work
?
P
popular-magenta
•
5/2/24, 10:04 PM
Huh
P
popular-magenta
•
5/2/24, 10:04 PM
I need an interval of a tick per each of the 4 if statements
P
popular-magenta
•
5/2/24, 10:04 PM
and the function happens every 15 ticks
N
nousernamefound
OP
•
5/2/24, 10:08 PM
okay well
N
nousernamefound
OP
•
5/2/24, 10:08 PM
have a variable named timer for the pixel
N
nousernamefound
OP
•
5/2/24, 10:08 PM
decrease it by 1 each tick until its 0
, then set it back to like 15 or something
N
nousernamefound
OP
•
5/2/24, 10:09 PM
and have the if statements run if pixel
.timer is a specific value
S
sacred-rose
decrease it by 1 each tick until its 0, then set it back to like 15 or something
P
popular-magenta
•
5/2/24, 10:37 PM
I have the tick function already
P
popular-magenta
•
5/2/24, 10:37 PM
Is there like a wait or delay functipn
?
P
popular-magenta
•
5/2/24, 10:37 PM
in js
N
nousernamefound
OP
•
5/2/24, 10:37 PM
yes but its in ms
/seconds
, not ticks
N
nousernamefound
OP
•
5/2/24, 10:37 PM
dont use that please
P
popular-magenta
•
5/2/24, 10:47 PM
K
S
sacred-rose
yes but its in ms/seconds, not ticks
P
popular-magenta
•
5/2/24, 10:47 PM
so what should I do
?
N
nousernamefound
have a variable named timer for the pixel
N
nousernamefound
OP
•
5/2/24, 10:48 PM
P
popular-magenta
•
5/2/24, 10:51 PM
ohh
S
sacred-rose
** **
P
popular-magenta
•
5/2/24, 10:51 PM
I need it to be extremely quick though
P
popular-magenta
•
5/2/24, 10:52 PM
As in 1 tick would take the game one millisecond to start the if statement if at 1000 tps
N
nousernamefound
OP
•
5/2/24, 10:52 PM
?
?
N
nousernamefound
OP
•
5/2/24, 10:52 PM
this sounds VERY xy problem
Next page