Jump to content

Javascript use of ||


rubing

Recommended Posts

This is a silly question, but google has a hard time searching for atypical characters. 

 

Here is a line in a javascript program I am trying to understand:

 

  this.url = (smURL||'soundmanager2.swf');

 

What is the meaning of  || ?

 

I thought || meant OR, but that wouldn't make sense in this context.

 

 

Link to comment
https://forums.phpfreaks.com/topic/107356-javascript-use-of/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.