I am trying to use a design script to turn some levels off based on the content stored inside a tag value inside the microstation file. For example I have a stamp that I am putting on the drawing and it has text in the stamp for the different stages of our workflow (i.e. for comment, for bids, for construction, for record). The tag in the microstation will be populated by the user. I want to have the design script locate the tag and then based on the value of the tag turn off or ignore certain levels for printing. I have included the name of the tag and what I have tired with an else if statement below but it doesn't seem to work. It appears to find the tag but it doesn't appear to be reading its value.
! Change Drawing Stamptag_set = 'Title_Main_Info'tag_name = "Dwg Stamp Status"!!!Turn Revised for Record On!!! if ((tag_character == "Revised for Record") && (level_name == 'Revised_for_Record')) then ignore_element = false else if ((tag_character == 'Revised for Record') || (level_name == "Approved Comments 90")) then ignore_element = true else if ((tag_character == 'Revised for Record') || (level_name == "Approved Comments 50")) then ignore_element = true else if ((tag_character == 'Revised for Record') || (level_name == "Approved Bids")) then ignore_element = true else if ((tag_character == 'Approved for Construction') || (level_name == 'Approved Construction')) then ignore_element = true else if ((tag_character == 'Revised for Record') || (level_name == "Approved Fabrication")) then ignore_element = true endif!!!!!Turn Revised for Record On!!! if ((tag_character == 'Revised for Record') || (level_name == 'Revised for Record')) then ignore_element = true else if ((tag_character == 'Revised for Record') || (level_name == "Approved Comments 90")) then ignore_element = true else if ((tag_character == 'Revised for Record') || (level_name == "Approved Comments 50")) then ignore_element = true else if ((tag_character == 'Revised for Record') || (level_name == "Approved Bids")) then ignore_element = true else if ((tag_character == 'Approved for Construction') && (level_name == "Approved_Construction")) then ignore_element = false else if ((tag_character == 'Revised for Record') || (level_name == "Approved Fabrication")) then ignore_element = true endif!!