...
When a variable is first used, PhixFlow will make a best guess about what type of data is stored in that variable. e.g.
Code Block |
---|
$thisNumber = 4 // A Number $thisAddress = '123 Fake St' // A String Value |
When PhixFlow has decided what type of data is stored in a variable, that type will not change. So in the above example,
$thisNumber = $thisAddress
will cause PhixFlow to reject the expression you are building. In some cases a type conversion function (e.g. toDate) can be used to force a value of one type , into a variable of another type.Note : in some cases, PhixFlow will be able to convert from one type to another where it makes logical sense. e.g. from an integer to a floating point value.
...