Home Forums Macros Incorrect data types Reply To: Incorrect data types

#7185
Patrick KiznyPacocreative
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?