Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to enter a variables in qliksense?

Hey everyone,

i know i have to use the debugger option, but i don't know how to continue....

1 Solution

Accepted Solutions
undergrinder
Specialist II
Specialist II

Hi Jhonatan,

I suggest you the Script Syntax and Chart Functions Guide.

When defining a variable, the syntax:

set variablename = string

or

let variable = expression is used.

The Set command assigns the text to the right of the equal sign to the variable, whereas the Let command evaluates the expression. Variables are case sensitive.

To debug a variable you should click on debug mode (data load editor - upper right corner), and you can run the script almost line-by line, and watch the values of variables.

G.

View solution in original post

4 Replies
korsikov
Partner - Specialist III
Partner - Specialist III

if you wants see you Variables value, try use Trace $(vMyvariable);

Not applicable
Author

i meant if i want to set them , do i just do SET=V....?

undergrinder
Specialist II
Specialist II

Hi Jhonatan,

I suggest you the Script Syntax and Chart Functions Guide.

When defining a variable, the syntax:

set variablename = string

or

let variable = expression is used.

The Set command assigns the text to the right of the equal sign to the variable, whereas the Let command evaluates the expression. Variables are case sensitive.

To debug a variable you should click on debug mode (data load editor - upper right corner), and you can run the script almost line-by line, and watch the values of variables.

G.

reddy-s
Master II
Master II

Hi Jhonatan,

Just declaring a variable using this: let varWeek = (week(Today()) - 1); -> is evaluated

                                                 or set varName = 'My Name is xyz'; -> considered as a string