Home › Forums › Macros › Incorrect data types › Reply To: Incorrect data types
12 February 2025 at 10 h 42 min
#7185

Participant
Generally something weird is going on.
// In Matrix
// in the head
Declare Local float $v$ = 0
// Later in case branches
CaseBranch "Test"
$v$ = currentCaseOptionValueFloat(0)
Message {"test CCOVF " + currentCaseOptionValueFloat(0) + " $v$ " + $v$ }
BreakCaseBranch
Fails to assign value to the variable, and output is:
currentCaseOptionValueFloat(0) ⇀ correct value
$v$ ⇀ 0
I’m using these assignments to tidy up my code and avoid repetitions
Any ideas?