Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

$DEFAULT

  • Last UpdatedOct 06, 2023
  • 1 minute read

Syntax

$DEFAULT ( Variable ) ( CHAR ! NUM ) ( Expression )

This defines a new variable and assigns a value to it if it has not already been defined. It is primarily used for defaulting parameters to macros. A type code must be supplied with the variable and this should be one of the following:

CHAR for character variables

NUM for numeric variable, no distinction is made between Integer and Real

for example, $DEFAULT width NUM 22.5

TitleResults for “How to create a CRG?”Also Available in