If I understand you need correctly, you need script which will convert numeric codes into strings, right? Then you can do the following:
Create script in script library, with some name, let's say "convert" (here I assume that you need to convert event's parameter %2 into text - otherwise change index in parameters[] accordingly):
and then use it in a message like %[convert]
Best regards,
Victor
Create script in script library, with some name, let's say "convert" (here I assume that you need to convert event's parameter %2 into text - otherwise change index in parameters[] accordingly):
Code Select
switch($event->parameters[2])
{
case 1: return "test";
case 2: return "test2";
// and so on...
}
return "unknown"; // default value
and then use it in a message like %[convert]
Best regards,
Victor
