Setting a negative value with microflow

3
Does anyone know how I set the value of an attribute of type Float, changing the value of the attribute form positive to negative? So I have a value of 50,00 and I wish to copy that attribute as -50,00
asked
3 answers
3

You can use an Unary Expression as described here on the wiki: Expressions.

You simply do a change object action and make the change value of the float attribute -$obj/yourfloat.

answered
4

Create a change action and set the attribute to -$obj/attr (i.e., minus value).

answered
1

You could use a Change action in your Microflow in which you set the value of your float to 0-$value.

answered