Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IF Function Failing

Status
Not open for further replies.

syammerc

Programmer
Jan 12, 2006
12
US
Hi,

This is the first time Iam facing this type of problem. I didnot faced everbefore.

TO evaluate the condition I use IF function like
Objects Map Rule
varible[1] ="OK"
variable[2] =IF(variable[1]="OK", "PASS", "FAIL")

I am always getting "FAIL" value in varibale[2]
I am using Mercator6.7 and windows environment.

Then I tried using MEMBER function it given correct result in windows envoironment but fail to give correct result in UNIX environment.

Is there any restrictions while using IF function or Iam missing any thing on this?

Thankyou in advance.
 
Sound like you are hitting Binding with the IF. MEMBER should work in any environment. Could be a data case issue on UNIX.

If not, send simple test case to IBM Support.



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Hi,
your statement:

TO evaluate the condition I use IF function like
Objects Map Rule
varible[1] ="OK"
variable[2] =IF(variable[1]="OK", "PASS", "FAIL")

here above in the IF statement the variable[1] should be like Variable[1]:(Type)
for example.

level Type Name
1 Test
2 Variable(s)
then
your IF statement should be like this IF(Variable[1]:Test="OK","PASS,"FAIL")
Test this it works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top