So instead of having multiple scripts, trying to combine 3 into one, see below. It doesn't seem to be adding the strings, any suggestions?
no event manager applet DETECT_CDP_Add authorization bypass
event manager applet DETECT_CDP_Add authorization bypass
event neighbor-discovery interface regexp .*GigabitEthernet.* cdp add
action 1 puts "CDP Device Type $_nd_cdp_platform detected on Interface $_nd_local_intf_name"
action 2 set result "0"
action 3.1 string equal length 8 "AIR-AP38*" "$_nd_cdp_platform"
action 3.2 if $_string_result eq 1
action 3.3 set result "1"
action 4.1 string equal length 8 "AIR-AP27*" "$_nd_cdp_platform"
action 4.2 if $_string_result eq 2
action 4.3 set result "2"
action 5.1 string equal length 8 "AIR-AP35*" "$_nd_cdp_platform"
action 5.2 if $_string_result eq 3
action 5.3 set result "3"
action 6.0 end
action 10 if $result eq 1
action 11 cli command "enable"
action 12 cli command "conf t"
action 13 cli command "switchport access vlan 101"
action 14 end
action 20 if $result eq 2
action 21 cli command "enable"
action 22 cli command "conf t"
action 23 cli command "switchport access vlan 102"
action 30 if $result eq 3
action 31 cli command "enable"
action 32 cli command "conf t"
action 33 cli command "switchport access vlan 103"
action 99 end