Infrastructure as Code with Azure Bicep by Yaser Adel Mehraban & John Downs & Edmondo Rosini

Infrastructure as Code with Azure Bicep by Yaser Adel Mehraban & John Downs & Edmondo Rosini

Author:Yaser Adel Mehraban & John Downs & Edmondo Rosini [Yaser Adel Mehraban]
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2022-02-10T00:00:00+00:00


The bool function

The bool function converts the parameter to a boolean. You can pass a string or integer to this function and the result is shown in the following example:

var trueString = bool('true')

var falseString = bool('false')

var trueInt = bool(1)

var falseInt = bool(0)

You can mix this function with logical operators to form conditional expressions, which can be helpful in deciding whether a resource should be deployed or not or other similar use cases.

We will review these in the next chapter.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.