Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| vendors:cisco:uc:ucce:cvp:java [2023/01/29 10:42] – [Cisco Stock Elements] gerardorourke | vendors:cisco:uc:ucce:cvp:java [2025/02/06 12:52] (current) – [Convert a Number to a String type with an intger value] gerardorourke | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| - | ===== Convert a Number to a String type with an intger | + | ===== Convert a Number to a String type with an integer |
| + | Note - you don't need to do this - you can use Set value as follows: | ||
| + | |||
| + | === JavaScript in Set Value node - can also do this ==== | ||
| + | as you can see from below - do NOT use " | ||
| + | < | ||
| + | var pollDurationInt; | ||
| + | pollDurationInt = {Data.Session.pollDuration}; | ||
| + | pollDurationInt = parseInt(pollDurationInt, | ||
| + | pollDurationInt = pollDurationInt .toString(); | ||
| + | pollDurationInt; | ||
| + | </ | ||
| * Set a session variable myInt to be your number, such as the string " | * Set a session variable myInt to be your number, such as the string " | ||