Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Prakhar1
Creator III
Creator III

Nested if condition in tmap

Hi, 

I have a file which has data without any delimiter, so we are using sub string to get the data.

Now I have to give some If condition in tmap output column like this

 

if(!row1.source_data.startsWith(" ") && row1.source_data.substring(16, 26) != "00000000000")

{

if (row1.source_data.substring(16, 17) == "50" || row1.source_data.substring(16, 17) == "90")

{

//here just extracting the data

}

}

 

Now i am not able right these two if conditions in tmap output expression as it is showing different error.

Can anyone help me on this ? 

Labels (3)
1 Solution

Accepted Solutions
fdenis
Master
Master

you have to use inline if syntaxe:
(condition)?ifTrue:ifFalse

View solution in original post

1 Reply
fdenis
Master
Master

you have to use inline if syntaxe:
(condition)?ifTrue:ifFalse