need help regarding concat function
Posted: 17 Aug 2017 09:03
Hi guys I need your help please.
my script:
smartStates = newList("Smart Rotate","Smart Timeout","Smart Notification");
for (smartState in smartStates)
{
if( contains(smartState,'Rotate' )==true )
{
detail = "on"
}
if( contains(smartState,'Timeout' )==true )
{
detail = "1 minute"
}
if( contains(smartState,'Notification' )==true )
{
detail = "active"
}
smartDetails = concat(smartState, ' (', detail, ')');
}
// string result be in this kind of format
Smart Rotate (on)
Smart Timeout (1minute)
Smart Notification (active)
Thanks....
my script:
smartStates = newList("Smart Rotate","Smart Timeout","Smart Notification");
for (smartState in smartStates)
{
if( contains(smartState,'Rotate' )==true )
{
detail = "on"
}
if( contains(smartState,'Timeout' )==true )
{
detail = "1 minute"
}
if( contains(smartState,'Notification' )==true )
{
detail = "active"
}
smartDetails = concat(smartState, ' (', detail, ')');
}
// string result be in this kind of format
Smart Rotate (on)
Smart Timeout (1minute)
Smart Notification (active)
Thanks....