web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Can't separate functio...
Power Apps
Answered

Can't separate functions or variables with " ; "

(0) ShareShare
ReportReport
Posted on by 37

What is the convention for ending lines? I'm following a course where ; is the correct way but it throws an error whenever I attempt it.

 

The way I separated two OnStart Set() functions was

 

Set(someVar1, value1)

+

Set(someVar2, value2)

 

Is this correct?

Categories:
  • Verified answer
    eka24 Profile Picture
    20,925 on at

    Consider this:

    Set(someVar1, value1);Set(someVar2, value2)

    If you want to add the variables:

    someVar1+someVar2

     

    if the addition is also a variable:

    Set(Added,someVar1+someVar2)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Ras21 Profile Picture
    37 on at

    Thanks, seems to work. Strange that I can't declare them on separate lines 

  • eka24 Profile Picture
    20,925 on at

    it could be on separate lines:

    Set(someVar1, value1);
    Set(someVar2, value2)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.Set(someVar2, value2)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard