
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 06:20 AM
Trying to create a Jelly if condition that will essentially do this:
if ((jvar_calling_UI_Page == 'bcp_DEPT_Author_EDIT') || (jvar_calling_UI_Page == 'bcp_DEPT_FULL_VIEW' && bcpPROCESSES.u_name != ''))
I've come up with this:
<j:if test="(${jvar_calling_UI_Page == 'bcp_DEPT_Author_EDIT'}) || (${jvar_calling_UI_Page == 'bcp_DEPT_FULL_VIEW'} ${AMP}${AMP} ${bcpPROCESSES.u_name != ''})">
But it's not working.
I'm sure I just haven't had enough coffee this morning. Could I get a little assistance with the correct way to form the jelly <j:if> syntax?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 08:43 AM
So I was correct. This works:
Here's a good tip that I bet very few have ever encountered:
You cannot mix a <j:if> test condition with a jvar variable and a glide record field result

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 07:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 07:55 AM
came across another eg, try
${AMP}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 07:57 AM
Tried that too, many times. No luck.
What I'm wondering is if I'm even able to mix comparing jvar variables with gr record field results? That *may* be where the issue is and why I can't combine these into one <j:if> statement?
I only ask because I see this OOB:
in the OOB UI Macro: servicecatalog_cart_template
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 07:59 AM
$[AMP]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 08:00 AM
Yeah, tried all variations. No love.