time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (501B)


      1 
      2 {{alias}}( bool, x, y )
      3     If a condition is truthy, returns `x`; otherwise, returns `y`.
      4 
      5     Parameters
      6     ----------
      7     bool: boolean
      8         Condition.
      9 
     10     x: any
     11         Value to return if a condition is truthy.
     12 
     13     y: any
     14         Value to return if a condition is falsy.
     15 
     16     Returns
     17     -------
     18     z: any
     19         Either `x` or `y`.
     20 
     21     Examples
     22     --------
     23     > var z = {{alias}}( true, 1.0, -1.0 )
     24     1.0
     25     > z = {{alias}}( false, 1.0, -1.0 )
     26     -1.0
     27 
     28     See Also
     29     --------
     30