====== RETURN ====== ===== return_statement ===== [ label ] return [ expression ] ; ===== Parents ===== * function_statement_part * procedure_statement_part ===== Further definitions ===== ==== label ==== * [[.:bnf#identifier]] ==== expression ==== * [[.:bnf#relation]] { and relation } * relation { or relation } * relation { xor relation } * relation [ nand relation ] * relation [ nor relation ] * relation { xnor relation } ===== Comment ===== A function body must contain a **RETURN** -statement. ===== Examples ===== No value is returned. RETURN ; ---- The return value is that of //value// . RETURN value ; ---- The return value is the result of the function //my_function// . RETURN my_function( data, 5 pF ) ; ---- The return value is the sum //a + b + 5 ns// . RETURN a + b + 5 ns ; ---- The return value is a chained string. RETURN "author name : " & name ;