IF UnitOfMeasureCode IN [Item."Base Unit of Measure",'']

SBokhorstSBokhorst Member Posts: 13
Hello everyone,

I do not understand why it is nessesary to use the IN command in the the code

IF UnitOfMeasureCode IN [Item."Base Unit of Measure",''] THEN

if it is just comparing why are they using this in stead of the equal sign?

Regards,

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Your IF-statement equals this one:
    IF (UnitOfMeasureCode = Item."Base Unit of Measure) OR (UnitOfMeasureCode = '') THEN
    
    The IN construction is used because of the OR condition.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
Sign In or Register to comment.