Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

boolean in shell script

my_bool=true

if [ "$my_bool" = true ]; then
if [ "$my_bool" = "true" ]; then

if [[ "$my_bool" = true ]]; then
if [[ "$my_bool" = "true" ]]; then
if [[ "$my_bool" == true ]]; then
if [[ "$my_bool" == "true" ]]; then

if test "$my_bool" = true; then
if test "$my_bool" = "true"; then
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #boolean #shell #script
ADD COMMENT
Topic
Name
4+9 =