Send an output if a variable has a specific value?
I would like to know how to send an output only if a variable is equal to a certain value. So say I have x, and I want it to send an output to a AND gate or another gadget, etc. What should I use to achieve this? I guess you could compare it to a Boolean operation, "if x = 67 then..."
-
you'll want to be using the calculator gadget, on there you have option to compare the input value (there is equal too, greater than , less than) to a number you set in the gadget, if it is true, then a signal will get sent from it.
-Marcos -
Use a calculator gadget, you can compare incoming signal (equal too, greater than , less than) to a value.
-Marcos -
Thank you so much for the quick response! I'll definitely start implementing that in my creations, it'll be really useful.
請登入寫評論。