CodeIgniter Forums
What is this? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter Archived (from EllisLab) (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: What is this? (/thread-49493.html)



What is this? - El Forum - 02-21-2012

[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.



What is this? - El Forum - 02-21-2012

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


What is this? - El Forum - 02-21-2012

[eluser]solid9[/eluser]
okay thanks.