Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ternary operator

$customer->user->fullName ?? ''

$customer->user->fullName ? $customer->user->fullName : ''
  
isset($customer->user->fullName) ? $customer->user->fullName : ''
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #ternary #operator
ADD COMMENT
Topic
Name
5+1 =