Introduces a remark (not taken into accountby the code).
Syntax:
1 |
REM |
Example:
1 2 3 4 5 |
REM This is a comment // This is anotherway to comment the code REM variable i1 is a simple moving average over 10 periods of high prices i1 = average[10](high) //this is a SMA |
Is it possible to set a start and end of a REM so can REM out only parts of a line or multiple lines of code in one go?
Not possible, but you can select multiple lines and type CTRL+R on your keyboard. It will automatically comment all selected lines at once.
Hi Nicolas CTRL+R very useful to know – shame cannot set start/end as editing out/testing parts of a condition line rather than having to delete or move the edit to a separate line and REM out would be very useful Eg. /* this is just text */ is one way I have come across in other languages to set start/stop of a REM statement within a line so hopefully might be considered for future implementation – thanks!