I’m wanting to do lots of maths in flows, and have intermediate values stored using the Assign statement.
However Assign has no type, so am I to assume it is text? Or is it type agnostic? If I assign a numeric value to it, will I need to do a .toNumber() each time I use it in an assignment afterwards?
Hi Antony,
You can see the value types in the console by using dmx.app.data
So if you add a string, the value type will be string:
If you add a number, then it will be a numeric value:
Thanks @teodor!
So when you say “if you add a string”, do you mean “if you assign a string”?
So if I assign:
-
1+2
then the variable becomes a number
- “Hello” then the variable becomes a string
… like automatically?
If you enter text this is a string:
If you enter a number, then it will be a number.
1 Like