cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
liewcc
Regular Visitor

Syntax to use mod() function in "Set Variable" action

I tried to use mod() function in a "Set Variable" action but there's a syntax error.

In this simple example, variable y starts with value 0 and I wanted to get mod(y+2, 2) which should return 0.

I googled and found some solutions where they have "Initialize Variable" action with "Add dynamic content" option to type in the expression. However I could not find that action in my Power Automate (which I assume is Power Automate Desktop installed on my laptop). 

Is it possible to use mod() in "Set Variable", if yes what is the correct syntax? If no, which action should I use?

 

PA_mod1.JPGPA_mod2.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Daniel_Pa
Resolver II
Resolver II

2 REPLIES 2
Daniel_Pa
Resolver II
Resolver II

Daniel_Pa_0-1642515310418.png

 

Thanks, @Daniel_Pa. It worked nicely.

Helpful resources

Announcements
Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Top Kudoed Authors
Users online (2,093)