The syntax of creating a procedure is

proc procedureName {arguments} {
  body
}

Example:

proc helloWorld {} {
  puts "Hello, World!"
}
helloWorld

Result:

Hello, World!

Discover more from Tips and Hints for Aerospace Engineers

Subscribe now to keep reading and get access to the full archive.

Continue reading