I am trying to read a float variable and decide if its > a value. If it is not larger, I want to leave it alone. If it is larger, I want it to take a value I assign it.
For example…
If A>7 {A=7;}
else{}
Im not sure how to translate this to blueprint. I have a node for Get A… I check it againts the value with > node … Then the output for this is a boolean result. If it is true, how do I go about setting A to a value I choose?
You can use the ‘If’ (called Branch) node to do something based on a condition. The ‘If’ node has a boolean input pin. Connect the boolean output of ‘>’ node to this node. Then create a ‘Set A’ node and connect it to the output pin of ‘If’ node. You can the use the Value field of ‘Set A’ node to provide the value to set it to - in your case ‘7’.