In Expression, is it necessary to have square bracket [] for variables ?
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
LauChuanLi
5 - Atom
09-11-2023
11:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I am copying codes from other software; hence I wish to explore if I can skip the step to add a square bracket for each variable.
I have tested to run without square bracket, and it seems like no issue. Thank you.
Labels:
- Labels:
- Expression
2 REPLIES 2
Rahulv288
7 - Meteor
09-12-2023
12:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
It won't cause any issue, but it will be good practice to use brackets.
binuacs
21 - Polaris
09-12-2023
12:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@LauChuanLi The variable should work without a square bracket if there is no space in between
