diff --git a/apps/docs/editor/blocks/logic/set-variable.mdx b/apps/docs/editor/blocks/logic/set-variable.mdx index 27ba552641..4051c66e97 100644 --- a/apps/docs/editor/blocks/logic/set-variable.mdx +++ b/apps/docs/editor/blocks/logic/set-variable.mdx @@ -168,6 +168,10 @@ Only available in WhatsApp. This will set your variable with the user's phone nu Only available in WhatsApp. This will set your variable with the user's name. +## Pop / Shift + +Pop removes the **last** item from the list variable that you provide and it will set the removed item into the "Popped item" variable. Shift does the same with the **first** item of the list. These are especially useful when you need to [create a loop](../../../guides/how-to-create-loops) that processes each item of a list. + ## Save in results By default, new variables are not persisted in the [Results](../../../results) table. They are only stored for the current user chat session. Enabling this option will save the variable in the `Results` table. diff --git a/packages/scripts/package.json b/packages/scripts/package.json index d67bf1c7c0..81040007dc 100644 --- a/packages/scripts/package.json +++ b/packages/scripts/package.json @@ -25,7 +25,7 @@ "getCoupon": "tsx src/getCoupon.ts", "redeemCoupon": "tsx src/redeemCoupon.ts", "exportResults": "tsx src/exportResults.ts", - "updateUserEmail": "tsx src/updateUserEmail.ts", + "updateUserEmail": "SKIP_ENV_CHECK=true tsx src/updateUserEmail.ts", "inspectChatSession": "tsx src/inspectChatSession.ts", "deleteChatSession": "tsx src/deleteChatSession.ts", "checkDependencies": "tsx src/checkDependencies.ts",