CodeIgniter Forums

Full Version: What is this?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]solid9[/eluser]
Help me recall this expression condition?

$this->store_salt ? $this->salt() : FALSE;

Sorry I forgot this is a short version of if else?
What is this logic called?
Please help me recall the name.

Thanks in advanced.

El Forum

[eluser]scottwire[/eluser]
Its called a ternary operator

El Forum

[eluser]solid9[/eluser]
okay thanks.