Skip to main content
1-Visitor
June 13, 2011
Question

How do i use the IF function?

  • June 13, 2011
  • 1 reply
  • 2175 views

Hi guys, pretty basic question im aware but still i seem to be unable to find an anwser:

I have a Variable: "Tee_type", which can be either equal to a "u", "t" or "w"......

what i need to be able to do is:

h(Tee_type):= if(Tee_type="u", something, something else)....

but i dont seem to be able to type it out properly, can anyone give me step-by-step instructions on how to type this function out. any help would be much appreciated.

Thanks!

1 reply

24-Ruby IV
June 13, 2011

We can use the if-function:

A:=if(a>b,... ,if(a<f,...,if(d>t,...,f( ...)))))

or

the if-operator

See the fig. 6 here http://twt.mpei.ac.ru/ochkov/Mathcad_14/MathcadWorkSheetAsFlowChartEng.pdf

1-Visitor
June 13, 2011

Ah, found the issue!

i wasn't using the bolean operators - knew it had to be a simple fix!

cheers, Ricky

1-Visitor
June 14, 2011

Ah, found the issue!

i wasn't using the bolean operators - knew it had to be a simple fix!

cheers, Ricky

Richardo,

It is always good practice to provide an example of the solved issue (even in this simple case) for other users to follow the thread.

Cheers

Mike