cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.

Using the if statement

VM_10380528
5-Regular Member

Using the if statement

I'm trying to type this conditional statement and I don't know how to. Could someone please help me type this function? 

I need a comma after V-battery and then an absolute value before the closing bracket, and PTC doesn't let me type that. 

 

VM_10380528_0-1681442039667.png

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
VM_10380528
5-Regular Member
(To:MartinHanak)

VM_10380528_0-1681488124291.png

Hi, 

I tried that too, but still I can't get to what its supposed to be...

View solution in original post

5 REPLIES 5

Hi,

do not use square brackets, use parentheses.


Martin Hanák
VM_10380528
5-Regular Member
(To:MartinHanak)

VM_10380528_0-1681488124291.png

Hi, 

I tried that too, but still I can't get to what its supposed to be...

VM_10380528
5-Regular Member
(To:VM_10380528)

and in my book, it is using square brackets. 

Intro to power electronics and motor control page 718.


@VM_10380528 wrote:

and in my book, it is using square brackets. 

Intro to power electronics and motor control page 718.


Hi,

please study help pages to understand if command.

https://support.ptc.com/help/mathcad/r9.0/en/#page/PTC_Mathcad_Help/using_conditional_statements.html

https://youtu.be/2kY-pGKPAM0

 

You can also search community web to get more information.

MartinHanak_0-1681628640827.png

https://community.ptc.com/t5/Mathcad/Compound-IF-statement-with-text/m-p/845500

 


Martin Hanák


@VM_10380528 wrote:

VM_10380528_0-1681488124291.png

Hi, 

I tried that too, but still I can't get to what its supposed to be...


Hi,

if command syntax in your expression is incorrect, use something like this if(mod(omega*t,pi),"true","false")

MartinHanak_0-1681629241152.png

 


Martin Hanák
Top Tags