Skip to main content
10-Marble
April 14, 2023
Solved

Using the if statement

  • April 14, 2023
  • 1 reply
  • 1962 views

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

 

 

 

 

 

Best answer by cadtelsim

VM_10380528_0-1681488124291.png

Hi, 

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

1 reply

24-Ruby III
April 14, 2023

Hi,

do not use square brackets, use parentheses.

cadtelsim10-MarbleAuthorAnswer
10-Marble
April 14, 2023

VM_10380528_0-1681488124291.png

Hi, 

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

cadtelsim10-MarbleAuthor
10-Marble
April 14, 2023

and in my book, it is using square brackets. 

Intro to power electronics and motor control page 718.