Trouble with Mathcad Programming: Need Help With Placeholder Error

Click For Summary
SUMMARY

The forum discussion centers on a programming issue in Mathcad, specifically regarding the use of the "placeholder" error encountered when using an if statement. The user attempted to implement a conditional statement with a single equals sign ("="), which is incorrect for comparison in Mathcad. The correct syntax involves using a double equals sign ("==") to compare values. This distinction is crucial for proper conditional logic in Mathcad programming.

PREREQUISITES
  • Understanding of Mathcad programming syntax
  • Familiarity with conditional statements in programming
  • Knowledge of Boolean operators
  • Basic programming concepts such as variable assignment
NEXT STEPS
  • Review Mathcad documentation on conditional statements
  • Learn about Boolean operators in programming
  • Explore common programming errors in Mathcad
  • Practice writing conditional statements in Mathcad
USEFUL FOR

This discussion is beneficial for Mathcad programmers, students learning programming logic, and anyone troubleshooting conditional statements in Mathcad.

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.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
9K
  • · Replies 1 ·
Replies
1
Views
13K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 34 ·
2
Replies
34
Views
9K
Replies
4
Views
846
Replies
40
Views
4K
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
8K