Comments PowerApps code

We can put comments in the power formula. Using comments in code is good to understand the formula for the other developers and for our own testing and maintenance.

There are two types of comment styles in power apps:

1. Line Comments
A line comment is one that specifies for one line. Line comments starts from “//”.

Syntax // Our comment here

Comments in Power Apps Code

2. Block Comments
The block comment spans in multiple lines. It starts with the special key combination of forward slash and an asterisk and continues until explicitly terminated with the opposite key combination of asterisk forward slash.

Syntax a) First Syntax /* Our Comment */

Comments in Power Apps Code

b) Second Syntax /* Our Comment
Our Second line
*/

Comments in Power Apps Code