====== Variable assignment ... := ..." ====== ===== variable_assignment_statement ===== [ label : ] target := expression ; ===== Parents ===== * function_statement_part * procedure_statement_part * process_statement_part ===== Further definitions ===== ==== label ==== * [[.:bnf#identifier]] ==== target ==== * [[.:bnf#name]] * [[.:bnf#aggregate]] ==== expression ==== * [[.:bnf#relation]] { and relation } * relation { or relation } * relation { xor relation } * relation [ nand relation ] * relation [ nor relation ] * relation { xnor relation } ===== Examples ===== //var// receives the value //0// . var := 0; ---- //a// receives the current value of //b// . a := b; ---- //a// receives the result of the function //my_function// as a new value. a := my_function ( data, 4 ); ---- //str_a// is assigned a string which consists of three interlinked parts. str_a := "Mein Name ist " & get_name & ", und Ihrer ?"; ---- //var_int// receives the result of the right equation as its value. var_int := my_function( data, 4 ) + 4 * a_function(var_int) - 2 ** data;