Product Site

5.1.7.23. ? (inline if)

Returns first if the receiving string is .true, returns second if it is .false.

Example 5.60. String class — ? method
do apples = 0 to 2                               -- 0 apples
  say apples (apples = 1)~?("apple", "apples")   -- 1 apple
end                                              -- 2 apples