Mathcad placeholder error before if statement

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
jrm2002
Messages
54
Reaction score
0
Am trying to locate forums for MAthcad programming but unable to find.
I want to put the following statements in mathcad but am getting a "placeholder" befor the if statement.Please please help, what is the error?

bill(usage):= |if (usage)=7
|

Note,
| indicates "Add Line"
"=" is a Boolean operator.

please help
 
Physics news on Phys.org
instead of "=", try "==". = usually sets somthing to a variable, == compares them.