Jelly <j:if> condition issue

xiaix
Tera Guru

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?

1 ACCEPTED SOLUTION

So I was correct.   This works:


find_real_file.png



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


View solution in original post

10 REPLIES 10

So I was correct.   This works:


find_real_file.png



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