[wIs2nd] tells you if the weapon is equipped in the off-hand or 2nd hand. The primary hand being considered the 1st hand.
So the following is basically saying that IF equipped in the primary hand or off-hand then do something:
Code:
if (eachpick.field[gIsEquip].value + eachpick.field[wIs2nd].value <> 0) then