xPage: AND logic operator into embedded Javascript

Hi!I have a xPage for dojo buttons…

There, i write some hide/display javascript “formula”… But i get an error when writing a logical expressions with & or && (AND operators).

<div dojoType="dijit.MenuItem" label="Save" onclick="dojo.byId('#{id:btnCorregir2}').click();"

style="display:#{javascript:

var status=ConductorDS.getItemValueInteger(‘status’).toString();

var editAction=ConductorDS.getItemValueString(‘FlagEditAction’);

/*

I tryed following logical expression, but didn’t work.

if ( (estado.equals(‘20’) && editAction.equals(‘Corregir’)) )

*/

//I changed (A && B) by equivalent !(!A || !B) and it works, but what happen with “&&” ???

if ( !(!estado.equals(‘20’) ||

!editAction.equals(‘Corregir’)) ){

return ‘block’;

else

return ‘none’;

}">

			</div>

Subject: error time…

I get a design time error into xPage

Subject: I see this in 8.5.1 as well…

It says “The entity name must immediately follow the ‘&’ in the entity reference.” each time I attempt to use && in JS, at least in a “rendered=” line. I was force to convert to || and use !() around it to get it to compile.

Subject: i tried & and it worked!!

<div dojoType="dijit.MenuItem" label="Save"onclick="dojo.byId('#{id:btnCorrect}').click();"

style="display:#{javascript:

var isCorrrection = logical condition;

if (estado.equals(‘20’) & isCorrrection ){

return 'block';

}else{

return 'none';

}

}" …