Multiple programing in microflow

0
Hello I need the following if endsWith($AssetIDs, ',')     then substring($AssetIDs, 0, length($AssetIDs) -1) else $AssetIDs   and    $AssetIDs = ‘[‘ + $AssetIDs + ‘]’   Im actually doing this is 2 different change variables. is it possible to do it in only 1, thus sepetating the 2 different programing conditions using ; for example?
asked
1 answers
1

Would the following not work for you?
 

if endsWith($AssetIDs, ',') then 
    '[' + substring($AssetIDs, 0, length($AssetIDs) -1) + ']'
else 
    '[' + $AssetIDs + ']'

 

answered