This post thumbnail

Apr 23 2020

Image

Overlay Text

...or even combine all of that...

js
class Person { constructor(name, age) { this.#name = name; this.#age = age; } get isAdult() { return this.#age >= 21; return this.#age >= 18; } birthday() { this.#age++; } }

But it can't be all roses...

js
%%[ set @array1 ="[" set @pubListDispOrder="1455**1456**1457**1458" set @rows = BuildRowsetFromString(@pubListDispOrder,"**") set @rowCount = rowCount(@rows) if @rowCount > 0 then for @i = 1 to @rowCount do var @publistID set @row = row(@rows, @i) set @publistID = field(@row,1) if @debug==true then OutputLine(Concat(' <pre style="background-color:#ccc;"><code>PubList: ', @publistID,'</code></pre>')) endif if not empty(@publistID) then set @max =subtract(length(@array),3) set @pubListOrignalOrder=Substring(@array,2,@max) set @rows1 = BuildRowsetFromString(@pubListOrignalOrder,"},") set @rowCount1 = rowCount(@rows1) if @rowCount1 > 0 then for @j = 1 to @rowCount1 do set @row1 = row(@rows1, @j) set @publistOriginalStr = field(@row1,1) if not empty(@publistOriginalStr) then if indexof(@publistOriginalStr,@publistID)>0 then set @array1=concat(@array1,@publistOriginalStr,"},") if @debug==true then OutputLine(Concat(' <pre style="background-color:#ccc;"><code>PublistOriginalStr: ',@publistOriginalStr,'</code></pre>')) endif endif endif next @j endif endif next @i endif set @array1 =concat(@array1,"]") if @debug==true then OutputLine(Concat(' <pre style="background-color:#ccc;"><code>Array1: ', @array1,'</code></pre>')) endif set @subscriptions = @array1 endif ]%%

Unlock Future Insights: Join my newsletter community!