Skip to main content
7-Bedrock
Apr 17, 2025 2:47 PM UTC
Solved

error in if function

AM_10506871_0-1744901096126.png

The  error is - "The value must be a scalar"

terryhendicott
21-Topaz II
Apr 17, 2025 4:04 PM UTC

Hi,

Please upload your worksheet.  What version of Prime are you using.

Cheers

 

19 replies

terryhendicott
21-Topaz II
Apr 17, 2025 4:04 PM UTC

Hi,

Please upload your worksheet.  What version of Prime are you using.

Cheers

 

Translate
23-Emerald V
Apr 17, 2025 5:32 PM UTC

The other point is: Did you type the square brackets? If you did, remove them.

By typing a square bracket, you create an Array, or Vector, and that is not a scalar.

You should NEVER type a square bracket to create a subset of an expression, Prime will change the look of ordinary (round) brackets to square if it sees fit to do so, but they will still be treated as round brackets, and that how you normally want them.

So if you typed the square brackets, remove them and replace them with round brackets if needed, but I guess Prime will put in round brackets automatically once you remove the squares.

 

Success!
Luc

Translate
7-Bedrock
Apr 18, 2025 3:48 AM UTC

Awesome, thank you.

 

I trying to use solve block and getting some errors , 

 

AM_10506871_0-1744947112969.png

I use prime 10.0, I have uploaded my sheet, open to suggestions to do it another way

 

Translate
terryhendicott
21-Topaz II
Apr 18, 2025 4:46 AM UTC

Hi,

Like this.

Translate