Creating string variable by adding values of other variables
Creating scripts in text mode enables a possibility of string type variable creating. It takes place via adding values of other variables to them.
The following script will be used in this example.
CLU->variable1 = CLU->Date .. CLU->Time
CLU->variable2 = CLU->Date .. " " .. CLU->Time
CLU->variable3 = "Date: " .. CLU->Date .. ", Time: " .. CLU->Time
where
variable1, variable2, variable3 are User features on CLU.
![](https://knowledgebase.grenton.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction35122009449originalzmMOFA0rQGGdBw2eOWbuPjWrZGL5JwyhTQ-1.png)
After sending the configuration to CLU and calling the mentioned script, variable1, variable2 oraz variable3 should look as follow.
![](https://knowledgebase.grenton.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction35122010159originalnvR0tPDkEH3wLqOW82Oq5XmyYc2twKeWqw-1.png)
The functionality like this one may be useful when there is a need to send requests using Gate HTTP which require cyclically changing tokens.
![](https://knowledgebase.grenton.com/hubfs/Knowledge%20Base%20Import/s3.amazonaws.comcdn.freshdesk.comdatahelpdeskattachmentsproduction35122012176originalPsQxj5zfG8Sd-T8d7luY2gWPz_tr7klzdQ-1.png)
![](https://knowledgebase.grenton.com/hubfs/Knowledge%20Base%20Import/support.grenton.plensupportsolutionsarticles35000170846-creating-string-variable-by-adding-values-of-other-variableshit-1.gif)