# Another RB IF statement question
**Category:** [Yahoo Archive](https://www.epiusers.help/c/yahoo-archive/9)
**Created:** 2000-08-15 09:04 UTC
**Views:** 388
**Replies:** 1
**URL:** https://www.epiusers.help/t/another-rb-if-statement-question/783
---
## Post #1 by @system
Wendy, not sure why you want to do this but try this formula
IIF( IN-RANGE(PODetail.POLine, 1, 1000) AND MiscCode= 'FR',
STRING(PODetail.POLine,'>>>>9'), '')
Regards
Jim Stetter
-----Original Message-----
From: Wendy Pursche [mailto:
wpursche@...]
Sent: Tuesday, August 15, 2000 7:33 AM
To: Vantage egroups list
Subject: [Vantage] Another RB IF statement question
Another question for you RB gurus. I would like my PO Line field to look
for the range between 1-1000 and display what it finds. I have written the
IF statement the way I thought it would work, but of course it doesn't.
Ideas??
IIF(PODetail.POLine =
NUM-ENTRIES('1','1000') And MiscCode = 'FR', '',
STRING(PODetail.POLine,'>>>>9'))
Thanks!
Wendy Pursche
Network Administrator
Schmald Tool & Die, Inc.
(810) 743-1600 ext.323
wpursche@...
[Non-text portions of this message have been removed]
---
## Post #2 by @system
Another question for you RB gurus. I would like my PO Line field to look for the range between 1-1000 and display what it finds. I have written the IF statement the way I thought it would work, but of course it doesn't. Ideas??
IIF(PODetail.POLine = NUM-ENTRIES('1','1000') And MiscCode = 'FR', '', STRING(PODetail.POLine,'>>>>9'))
Thanks!
Wendy Pursche
Network Administrator
Schmald Tool & Die, Inc.
(810) 743-1600 ext.323
wpursche@...
[Non-text portions of this message have been removed]
---
**Canonical:** https://www.epiusers.help/t/another-rb-if-statement-question/783
**Original content:** https://www.epiusers.help/t/another-rb-if-statement-question/783