Table of Contents

Has Unit Property

Returns true if the named property exists for the Unit.


Usage:

Has Unit Property (Property name, text) in unit (unit name, text) returns boolean


Example:

if (has unit property “abbreviated name” in unit “my unit with long name”) then
  write log “the abbreviated name of the unit is “ & (get unit property “abbreviated name” in unit “my unit with long name”)
else
  write log “There is no abbreviated name for this unit"
end if

See Also: