Geo SCADA Knowledge Base
Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.
Invite a Colleague
Found this content useful? Share it with a Colleague!
Originally published on Geo SCADA Knowledge Base by sbeadle1 | June 09, 2021 07:41 PM
📖 Home Back
Indents and outdents in structured text are used to easily show blocks of code, i.e. the code within an IF statement or WHILE loop:
IF (i=1) THEN j:=1; k:=2;ELSE j:=2; k:=1;END_IF;
If you are using multiple IF statements and then add or delete one of the indentation levels, the lines will look out of place, which makes the programs harder to read and understand. Highlight multiple lines (this doesn't work on single lines) and press the TAB key to indent all the lines at once. To outdent, use SHIFT-TAB. These are the same shortcuts as used in Visual Studio, however Visual Studio also provides icons to do the same thing and so users may not be used to these shortcuts. Go: Home Back
Events & webinars
Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.
Register today for FREE
Already have an account?Login