Skip to main content
regcurry
16-Pearl
Sep 7, 2023 4:42 AM UTC
Solved

Boolean branching using ASCII

Could not find this in a search, which surprises me.  Is the following not possible in Mathcad 15?

 

regcurry_0-1694061652130.png

Thanks for any help.  I can make it work if I use mathematical tests, But, I like to learn new things.

Reg

 

 

Werner_E
Werner_EAnswer
25-Diamond I
Sep 7, 2023 4:53 AM UTC

Which error message do you get?

Pls attach your worksheet as its hard to debug just a picture!

As far as i can see the if is on the right hand side of the assignment for Kpuj, but the otherwise is NOT!
So you would need to type the "Kpuj <---" on the line containing the "otherwise" as well.

2 replies

Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I
Sep 7, 2023 4:53 AM UTC

Which error message do you get?

Pls attach your worksheet as its hard to debug just a picture!

As far as i can see the if is on the right hand side of the assignment for Kpuj, but the otherwise is NOT!
So you would need to type the "Kpuj <---" on the line containing the "otherwise" as well.

Translate
23-Emerald V
Sep 7, 2023 3:32 PM UTC

Your value THICKTAMP is undefined.

You used a Boolean equals (bold =  instead of assignment  :=  ) in your attempt to give it the value "y".

 

Success!

Luc

Translate