Skip to main content
Cadet | Tier 2
January 27, 2022
Question

Why number variables are not allows to write to Messagebox / Log to File ? Do we need to convert them to string variables before writing to MessageBox / Log to File

  • January 27, 2022
  • 1 reply
  • 256 views
Why number variables are not allows to write to Messagebox / Log to File ? Do we need to convert them to string variables before writing to MessageBox / Log to File

    1 reply

    Ashwin A.K
    Navigator | Tier 3
    January 27, 2022

    Hi @Analyst Kumar​ ,

     

    Numbers have to be converted to string either by using the Number: To String Action.

     

    imageOr, by using inline operations, which is what I prefer:

     

    imageIt isn't necessary to memorise the syntax, just add a period just before the last dollar sign and intellisense pops up.

     

    Also, since its a field which only accepts strings, F2 won't show the number variables, so you have to write numbers by invoking intellisense(starting your variable declaration using $).

     

    imageimage 

    Kind Regards,

    Ashwin A.K

    Blogs at TheCodingTheory - https://www.thecodingtheory.com