Bash

From John Freier
Revision as of 16:19, 29 April 2021 by Jfreier (Talk | contribs) (Created page with " == One line conditional == Both the following lines will write to the screen "false" 1 == 0 || echo "text" 1 == 1 && echo "text"")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

One line conditional

Both the following lines will write to the screen "false"

  1 == 0  || echo "text"
  1 == 1  && echo "text"