Several LabView functions return a -1 to indicate not-found/failure. I often find myself creating boolean code snippets with the "equal to ----" or "unequal to ----" functions comparing things to a "-1" constant with the T/F output going to a case structure. I thought it might be nice to have pre-made "=-1?" and/or "<>-1?" functions (similar to the "=0?" and "<>0?" ones) on the "Comparison" function palette to at least clean up the code a bit,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.