github.com/square/finch@v0.0.0-20240412205204-6530c03e2b96/docs/content/syntax/values.md (about)

     1  ---
     2  weight: 4
     3  title: Values
     4  ---
     5  
     6  ## String-int
     7  
     8  In Finch [stage]({{< relref "syntax/stage-file" >}}) and [\_all.yaml]({{< relref "syntax/all-file" >}}) files, most numerical values are YAML strings.
     9  
    10  |String Value|Numerical Value|
    11  |------------|---------------|
    12  |""|0 or default value|
    13  |"1"|1|
    14  |"1,000"|1000|
    15  |"1k"|1000|
    16  |"1KB"|1000|
    17  |"1KiB"|1024|
    18  |"$params.foo"|5 when `params.foo = "5"`|
    19  
    20  ## Time Duration
    21  
    22  Time durations (usually a configuration or parameter called `freq`) are [Go time duration](https://pkg.go.dev/time#ParseDuration) strings:
    23  
    24  >Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
    25  
    26  ## String-bool
    27  
    28  These strings evaluate to boolean true:
    29  
    30  * "true"
    31  * "yes"
    32  * "on"
    33  * "aye"
    34  
    35  All other strings, including empty strings, evaluate to boolean false.