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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax for VI expression builder

Status
Not open for further replies.

Blorf

Programmer
Dec 30, 2003
1,608
US
I need to condition pay rate in a payroll VI import but I don't know the syntax. Basically, if an earnings code is from S1 to S3, and the payrate1 is less than X then use one formula, otherwise, use another. Here is what I tried.

if {PR.EARN:EARNINGS_CODE} >= "S1" and {PR.EARN:EARNINGS_CODE} <="S3" and {PR.EMPL:pAY_RATE1} < 25.00 then 25.00 * val({PR.DATAENT:EARNINGS_MULT}) else {PR.EMPL:pAY_RATE1}*val({PR.DATAENT:EARNINGS_MULT})

Thanks for the help.

ChaZ

There Are 10 Types Of People In The world:
Those That Understand BINARY And Those That Don’t.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top