Skip to main content
Apr 14, 2023 3:15 AM UTC
Solved

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

 

 

 

 

 

cadtelsimAnswer
Apr 14, 2023 4:03 PM UTC

VM_10380528_0-1681488124291.png

Hi, 

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

5 replies

Apr 14, 2023 6:45 AM UTC

Hi,

do not use square brackets, use parentheses.

cadtelsimAuthorAnswer
Apr 14, 2023 4:03 PM UTC

VM_10380528_0-1681488124291.png

Hi, 

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

cadtelsimAuthor
Apr 14, 2023 4:34 PM UTC

and in my book, it is using square brackets. 

Intro to power electronics and motor control page 718.