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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

How do i use the IF function?

RicardoSantos
1-Newbie

How do i use the IF function?

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!

3 REPLIES 3

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

Ah, found the issue!

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

cheers, Ricky

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

Top Tags