Ignore:
Timestamp:
Dec 30, 2008, 1:57:13 AM (17 years ago)
Author:
bird
Message:

kmk: Added a $(select ) function for handling switch like stuff. Fixes #74.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/doc/QuickReference-kmk.txt

    r2161 r2163  
    482482
    483483
    484 (Mostly) Boolean Functions:
     484Boolean and Conditional Functions:
    485485
    486486    Condition is false if the ``condition`` evaluates to an empty string
     
    521521    Same as ``$(if )`` execpt that the condition is a ``kmk`` expression::
    522522
    523         $(if kmk-expression,true-part[,false-part])
     523        $(if-expr kmk-expression,true-part[,false-part])
     524
     525    Select the first true condition (``kmk`` expression) and expand the
     526    following body. Special condition strings ``default`` and ``otherwise``::
     527
     528        $(select when1-cond, when1-body[, whenN-cond, whenN-body])
    524529
    525530    Evalutate the ``kmk`` expression returning what it evalues as. This is
Note: See TracChangeset for help on using the changeset viewer.