Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[b]proc[/b] foo {} { [b]puts[/b] one }
foo
[b]proc[/b] foo {} { [b]puts[/b] two }
foo
[b]proc[/b] foo {} { [b]puts[/b] three }
foo
[blue]master #[/blue] tclsh proc-sample.tcl]
one
two
three
[b]select[/b] action [b]in[/b] [green][i]'Load function'[/i][/green] [green][i]'Call function'[/i][/green]; [b]do[/b]
[b]case[/b] [green][i]"$action"[/i][/green] [b]in[/b]
[green][i]'Load function'[/i][/green]) . [green][i]'function-definition.sh'[/i][/green] ;;
[green][i]'Call function'[/i][/green]) go_function_go ;;
*) [b]break[/b] ;;
[b]esac[/b]
[b]done[/b]
go_function_go()
{
[b]echo[/b] [green][i]'Hello World !'[/i][/green]
}
[blue]master #[/blue] bash function-sample.sh
1) Load function
2) Call function
[blue]#?[/blue] 2
function-sample.sh: line 5: go_function_go: command not found
[blue]#?[/blue] 1
[blue]#?[/blue] 2
Hello World !