Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

Ruby Ternary operator

=begin
Types of operators

Unary operator

	! 
    ~ 
    + 

Airthmetic operator

	+ 
    - 
    / 
    * 
    ** 
    % 

Bitwise operator

	& 
    | 
    << 
    >> 
    ^ 
    ~ 

Logical operator

	&&
    ||

Ternary operator

	?: 

Assignment operator

	=
    +=
    -=
    *=
	/=
    %=
    **=
    
Comparison operator

	==	
	!=	
	>	
	<
	>=
	<=
	<=>
	.eql?
	equal?

Range operator

	..	
	...	

=end
 
PREVIOUS NEXT
Tagged: #Ruby #Ternary #operator
ADD COMMENT
Topic
Name
1+1 =