Max/Min expression invalid parameter

Bugs will be moved here once resolved.

Post » Fri Feb 10, 2012 8:46 pm

R78 32 bit win7.

Description: expression editor doesn't allow to set the second parameter (b) of max(a,b) and min(a,b) to a variable. It drops an error: "Invalid Parameter - Parameter 2 of 'max': must be a number"



This happens in any expression, not just in the "Set text" like the example.
Scirra Employee
B
146
S
52
G
17
Posts: 709
Reputation: 17,546

Post » Fri Feb 10, 2012 9:51 pm

Quick workaround, cast your variable in a float() or an int()
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
276
S
103
G
84
Posts: 7,289
Reputation: 83,098

Post » Sat Feb 11, 2012 2:16 am

Oops, typo in the expression checker. Fixed for next build.
Scirra Founder
B
384
S
227
G
86
Posts: 24,139
Reputation: 190,751


Return to Closed bugs

Who is online

Users browsing this forum: shubhamrathi9 and 0 guests