//Assign variables
Let>alarm_green=http
Let>alarm_orange=xyz
Let>alarm_red=ssh

//Create reference string to search
Let>refstring=alarm_green=%alarm_green%%CRLF%alarm_orange=%alarm_orange%%CRLF%alarm_red=%alarm_red%

//Value you are searching for
Let>searchstring=ssh

//Do the search
Let>tmp0=(?m)[^=\n]+(?==%searchstring%)
RegEx>tmp0,refstring,0,M,NM,0

If>NM>0
    MessageModal>M_1
ELSE
    MessageModal>Value not assigned to variable
EndIf