This expression will subtract 1 from the original expression. Go to the end of the expression by pressing the down arrow key and enter a comma, a 1 and a closing parenthesis. Wrap the expression in the sub() function. Click on the expression label to edit your expression.įirst, we'll need to offset the result of the mod() function by 1. Instead of hardcoding the index, you'll use the output from the mod() function. To access the first person in your person array, the expression would look something like this: outputs( 'Compose_-_Person_Array' )? The first item of an array is 0, second is 1 and so on. You can access an item in an array by using an index key. The expression would have been 13/3 so that leaves 1 as the remainder which is what the Compose action has outputted. There are a total of 3 people in my array. I've selected next Monday (March 25) as my date. mod(, )Ĭlick the dynamic content tab and insert the output from the Compose action that is storing the current week number.Īdd a comma and insert the output from the Compose action storing the count of people. Remember that the mod() function takes two parameters. Select the Dynamic content tab and insert the dynamic content that is storing your person array into the length() function.Īdd a Compose action to store an expression. If you want to be able to add people in the future to your list-you'll need to return a count of people from the array rather than hard coding it into an expression you'll be using shortly. I've stored my person array inside a Compose action. For demonstration purposes I've selected the first date of the year Jan 1. After you trigger the flow, you'll be prompted to select a date. This will add one to the result of the division expression since the first week of the year starts at 1 and not 0. Enter a comma and a 1 and a closing parenthesis. Go to the end of the expression by pressing the down arrow key. Type the word add with an opening parenthesis. Go to the start of the expression again by pressing the up arrow key and wrap the entire expression in the add () function. Go to the end of the expression by pressing the down arrow key and add a comma and the number 7 and a closing parenthesis. Go to the start of the expression by pressing the up arrow key and add the word div and an opening parenthesis. You'll use this function to divide the day of the year returned by 7. Next, wrap the expression in the div() function. Insert the dayofYear() function.Ĭlick on the Dynamic Content tab and insert the Trigger Date dynamic content. This is how you'll use it: mod(, ) Manual Trigger with Date Inputįor testing purposes, use a manual trigger in your flow with a date input.Īdd a Compose action to store an expression that will return the current week number. This function will perform a math operation that returns the remainder when one number is divided by another. Select Remove from Highlight from the menu.Can utilize and expression and use the mod() function.Select More from the bottom-right corner.Open the Highlight and navigate to the story you want to delete. You can also delete only certain stories from your Instagram Highlight, rather than removing it altogether:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |