Recent Changes - Search:

Basics

Languages

Tools

OS

Resources

PmWiki

pmwiki.org

edit SideBar

IfStatements

Multi-line structure

if [ condition 1 ]; then

   action 1

elif [ condition 2 ]; then

   action 2

fi

Single line structure

if [ condition 1 ]; then action1 ; else action2 ; fi

Negative condition

if ! [ condition 1]; then

   action 2

else

   action 1

fi

See also some common Test Cases for examples of what to test.

Edit - History - Print - Recent Changes - Search
Page last modified on June 27, 2018, at 02:27 PM