Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Howto add more that § instruction

Posted on by 329
Hello all,
I'm completely new in PowerApps and I've thw following problem.
 
According to what I read, it should be possible to add more than 1 instruction in  a block of instruction.
 
For example, I've the event 'OnSelect' and I'd like to initalize 2 variables like this  (in my envirronement, the semicolon is used) :
 
Set (premierJour;1) ;
Set(deuxiemejour;2)
 
Unfortunately, this generates an error  at the semicolon's place  
 
the workarounds I found are :
 
concurrent
(
   Set (premierJour;1) ;
   Set(deuxiemejour;2)
)
 
or 
Set (premierJour;1)  &&
Set(deuxiemejour;2)
 
 
so, is it normal I can't just put 2 instructions separated by a ; (or , in your case) ? if yes, what is the best to use ; concurrent() or && ?
Thanks to all for your help
 
 
  • forstera Profile Picture
    forstera 329 on at
    Howto add more that § instruction
    @WarrenBelz
     
    thanks very very much for your help. I spent a lot of time trying different things but not the double semicolons !
    Nowhere in the documentation I found this information !
    Thanks again and have a nice week-end
    Arnaud
  • Verified answer
    WarrenBelz Profile Picture
    WarrenBelz 143,532 on at
    Howto add more that § instruction
    Hi  forstera
    European syntax is like this
    Set(premierJour; 1);;
    Set(deuxiemejour; 2)
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,532

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,050

Leaderboard