compare values if something match show

Compare a value,

I used this to find a common letters in the PREFIX of Assembly / Cast-Unit and show  list in the drawing.
So IF the CAST-UNIT contain the character from drawing comment_X then show all assemblies with the same character.

if match(GetValue("CAST_UNIT_PREFIX"),"*"+CopyField("comment_X")+"*") then
  Output()
else
  StepOut()
endif


Note: normally I use == but for the equal the prefix should be the same of the the Comment field

if (GetValue("CAST_UNIT_PREFIX") == CopyField("comment_X")) then
  Output()
else
  StepOut()
endif

Comentários

Mensagens populares