Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
raadwiptec
Creator II
Creator II

if condition

I need an if condition for $(Include=\\....\...\configfiles.txt)

For example.  .. If the .qvw file path contains  'C:\Orginal' then $(Include=\\....\...\configfiles.txt) else $(Include=\\....\...\newconfigfiles.txt)

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe like

IF DocumentPath() LIKE 'C:\Original*' THEN

TRACE Include1;

$(Include=\\....\...\configfiles.txt);

ELSE

TRACE Include2;

$(Include=\\....\...\newconfigfiles.txt);

ENDIF

View solution in original post

2 Replies
swuehl
MVP
MVP

Maybe like

IF DocumentPath() LIKE 'C:\Original*' THEN

TRACE Include1;

$(Include=\\....\...\configfiles.txt);

ELSE

TRACE Include2;

$(Include=\\....\...\newconfigfiles.txt);

ENDIF

Anil_Babu_Samineni

Or this?

SET vPath = 'C:\Original';

IF If(SubStringCount(DocumentPath(),'$(vPath)'),'C:\Original') = WildMatch($(vPath),'$(vPath)') THEN

$(Include=\\....\...\configfiles.txt);

ELSE

$(Include=\\....\...\newconfigfiles.txt);

ENDIF

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful