Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOR Clause
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00465240
Message ID:
00465269
Views:
12
No.
You would have to use :

IIF(nCnt = 1,IIF(citem.des1=creport.des,2,3),)

OR

IIF(nCnt = 1 AND citem.des1=creport.des,2,3)

The first IIF checks for nCnt =1 and if true checks for citem citem.des1=creport.des. If nCnt !=1 then it needs to know what to do (). So If nCnt=1 and citem.des1=creport then the statement returns 2 , If nCnt=1 and citem.des1!=creport the statement returns 3, If nCnt!=1 , the statement returns what ever you place in

The second IIF checks for nCnt = 1 AND citem.des1=creport.des and if true returns 2, if false returns 3.


Hope this helps


>Hi Everyone:
> I was wondering if it is possible to include For statement in a immediate If statement. For example IIF(nCnt = 1,For citem.des1=creport.des,2,3)
>Thanks
Ken Wardwell
Previous
Reply
Map
View

Click here to load this message in the networking platform