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
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

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.

Top Solution Authors
Users online (2,624)