Function definition: Difference between revisions
Content added Content deleted
Line 547: | Line 547: | ||
The main features of function statement are: |
The main features of function statement are: |
||
1) You can use relational operators, so it's possible to "compact" an IF THEN ELSE statement but not loop statements: you must use a procedure for |
1) You can use relational operators, so it's possible to "compact" an IF THEN ELSE statement but not loop statements: you must use a procedure for these. |
||
2) Functions can have their own identifier (integer, string, real,double). |
2) Functions can have their own identifier (integer, string, real,double). |