Although this is not a typical ColdBox question, you may need to go to the Adobe ColdFusion documentation and read up on the commands and functions some more.
Your logic is all wrong.
if((not isDefined(“request.hideSideNav”) && request.hideSideNav == true) {
}
Now request can be used, but I would tend to look at something like this.
Your handler.
function index(event, rc, prc) {
var prc.hideSideNav = false;
//… mnore conditional checks to set navigation on or off
}
Then you could do something like this in your view or layout.
if(prc.hideSideNav == true) {
}