docs: Clarify example usage of the signum function

This commit is contained in:
Radek Simko 2016-02-07 20:28:58 +00:00
parent 4edf782260
commit 14e6f6e4ce
1 changed files with 1 additions and 0 deletions

View File

@ -177,6 +177,7 @@ The supported built-in functions are:
This function is useful when you need to set a value for the first resource and This function is useful when you need to set a value for the first resource and
a different value for the rest of the resources. a different value for the rest of the resources.
Example: `element(split(",", var.r53_failover_policy), signum(count.index))` Example: `element(split(",", var.r53_failover_policy), signum(count.index))`
where the 0th index points to `PRIMARY` and 1st to `FAILOVER`
* `split(delim, string)` - Splits the string previously created by `join` * `split(delim, string)` - Splits the string previously created by `join`
back into a list. This is useful for pushing lists through module back into a list. This is useful for pushing lists through module