There are 3 scenes I do NOT want a certain Javascript code to run on. How do I use IF, ELSE IF, and ELSE to accomplish this? Here's the code I have right now.
-------------
$(document).on('knack-scene-render.any', function(event, scene) {
If (scene.key == 'scene_25'){}
Else if(scene.key == 'scene_33'){}
Else if(scene.key == 'scene_34'){}
Else {
<!--Start my Script-->
<!--End my Script-->
}
You are AMAZING, Sunny! Thank you so much!!
But since you solved that puzzle so, so quickly, you need a more challenging one! [This is sarcasm, of course!!] If you can help me with the question at this link, it would be very helpful! https://support.knack.com/hc/en-us/community/posts/360022208431-hide-menu
Just use below script
$(document).on('knack-scene-render.any', function(event, scene) {
if (scene.key != 'scene_25' && scene.key != 'scene_33' && scene.key != 'scene_34') {
///add your code here
}
});