Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Howto add more that § instruction

Posted on 22 Nov 2024 22:14:46 by 315
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 315 on 23 Nov 2024 at 09:53:22
    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,111 on 22 Nov 2024 at 23:52:57
    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

October 2024 Newsletter…

October 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #4 How to Conntact Support…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,111

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,795

Leaderboard