You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context:
I was trying to do something to refresh a token in case this one expires, but I noticed that "else-if" actions are not detected for variables.
In case there request doesn't responses with an error, the macro sends a message to Twitch Chat.
But in case there is an error, the macro refresh the token and executes the whole macro again knowing that the request will work with the refreshed token.
Example macro:
{"macros":[{"name":"Macro 2","pause":true,"parallel":false,"onChange":true,"skipExecOnStart":false,"stopActionsIfNotDone":false,"group":false,"dockSettings":{"register":false,"hasRunButton":true,"hasPauseButton":true,"hasStatusLabel":false,"highlightIfConditionsTrue":false,"runButtonText":"Run","pauseButtonText":"Pause","unpauseButtonText":"Unpause","conditionsTrueStatusText":"Conditions are true.","conditionsFalseStatusText":"Conditions are false."},"macroActionConditionSplitterPosition":[],"macroElseActionSplitterPosition":[],"registerHotkeys":false,"pauseHotkey":[],"unpauseHotkey":[],"togglePauseHotkey":[],"conditions":[{"segmentSettings":{"collapsed":true,"useCustomLabel":false,"customLabel":"My label"},"id":"timer","logic":0,"durationModifier":{"time_constraint":0,"seconds":{"value":{"value":0.0,"type":0},"unit":0,"version":1}},"type":0,"duration":{"value":{"value":5.0,"type":0},"unit":0,"version":1},"duration2":{"value":{"value":0.0,"type":0},"unit":0,"version":1},"remaining":5.0,"saveRemaining":false,"paused":false,"oneshot":false,"version":1}],"actions":[{"segmentSettings":{"collapsed":true,"useCustomLabel":false,"customLabel":"My label"},"id":"http","enabled":true,"url":"google.com","data":"--ingresar texto--","setHeaders":false,"headers":[],"method":0,"duration":{"value":{"value":1.0,"type":0},"unit":0,"version":1}},{"segmentSettings":{"collapsed":true,"useCustomLabel":false,"customLabel":"My label"},"id":"variable","enabled":true,"variableName":"test","variable2Name":"Invalid varialbe selection","strValue":"","numValue":0.0,"condition":6,"segmentIdx":0,"subStringStart":0,"subStringSize":0,"regexPattern":".*","regexMatchIdx":0,"findRegex":{"enable":false,"partial":false,"options":0},"findStr":"Text to find","replaceStr":"Text to replace with","regexConfig":{"enable":false,"partial":true,"options":0},"mathExpression":"( 1 + 2 * 3 ) / 4","useCustomPrompt":false,"inputPrompt":"Assign value to variable:","useInputPlaceholder":false,"inputPlaceholder":"--ingresar texto--","environmentVariableName":"USERPROFILE","sceneSelection":{"type":0,"name":""},"tempVar":{"type":0,"idx":-1,"id":""},"sceneItemIndex":{"value":1,"type":0},"direction":0,"stringLength":{"value":1,"type":0},"paddingChar":48}],"elseActions":[{"segmentSettings":{"collapsed":true,"useCustomLabel":false,"customLabel":"My label"},"id":"http","enabled":true,"url":"twitch.tv","data":"--ingresar texto--","setHeaders":false,"headers":[],"method":0,"duration":{"value":{"value":5.0,"type":0},"unit":0,"version":1}},{"segmentSettings":{"collapsed":false,"useCustomLabel":false,"customLabel":"My label"},"id":"variable","enabled":true,"variableName":"Invalid varialbe selection","variable2Name":"Invalid varialbe selection","strValue":"","numValue":0.0,"condition":6,"segmentIdx":-1,"subStringStart":0,"subStringSize":0,"regexPattern":".*","regexMatchIdx":0,"findRegex":{"enable":false,"partial":false,"options":0},"findStr":"Text to find","replaceStr":"Text to replace with","regexConfig":{"enable":false,"partial":true,"options":0},"mathExpression":"( 1 + 2 * 3 ) / 4","useCustomPrompt":false,"inputPrompt":"Assign value to variable:","useInputPlaceholder":false,"inputPlaceholder":"--ingresar texto--","environmentVariableName":"USERPROFILE","sceneSelection":{"type":0,"name":""},"tempVar":{"type":0,"idx":-1,"id":""},"sceneItemIndex":{"value":1,"type":0},"direction":0,"stringLength":{"value":1,"type":0},"paddingChar":48}],"inputVariables":[]}],"variables":[{}],"actionQueues":[],"version":"1.26.4"}
The text was updated successfully, but these errors were encountered:
Version information:
Context:
I was trying to do something to refresh a token in case this one expires, but I noticed that "else-if" actions are not detected for variables.
Example macro:
![image](https://private-user-images.githubusercontent.com/42017416/344804491-62147e1c-6f38-4d1f-8203-c750db1186b1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMDM4NjMsIm5iZiI6MTczOTAwMzU2MywicGF0aCI6Ii80MjAxNzQxNi8zNDQ4MDQ0OTEtNjIxNDdlMWMtNmYzOC00ZDFmLTgyMDMtYzc1MGRiMTE4NmIxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDA4MzI0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRhMjVhMTkwZGMxNmJlMTNmMDUxOGJjMGY3NjEwYWMyNzQ1ZjVjZTU2ZmE1YWEwMjNlYjgyOGNjMGI0NmJlM2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.2hx5bMaPNDglr07vo0B7tfhMMsstIh-na_S3wwM769w)
The text was updated successfully, but these errors were encountered: