• Hey! Register here to create your account, engage with the community, and talk about what is new!

gates

ARMcPro

Forum adept
Overlord
Joined
Oct 20, 2020
Messages
1,260
Reaction score
356
i mean there are bitwise operations, you can use them i guess
 

HackerDragon9999

Forum adept
Joined
Jan 18, 2023
Messages
121
Reaction score
21
and gate:
if a { if b { do thing } }
or gate:
if a { do thing, c=1 }, if b { if c=0 { do thing } }
xor gate:
if a { c=1 }, if b { d=1 }, if not c=d { do thing }
nand gate:
if not a { do thing, c=1 }, if not b { if c=0 { do thing } }
nor gate:
if not a { if not b { do thing } }
xnor gate:
if a { c=1 }, if b { d=1 }, if c=d { do thing }

if c and d are set to 0 before this (they auto are if they are local and it's their first use in event) this works
 
Top Bottom