Created
March 19, 2018 01:14
-
-
Save n1ckfg/415b3a452278a25ba793156a05783b2a to your computer and use it in GitHub Desktop.
AE counter expression formatted with commas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var val = "" + Math.round(effect("Point Control")("Point")[0]); | |
var returns = ""; | |
for (var i=val.length-1; i>=0; i--) { | |
returns += val[Math.abs(val.length-1-i)]; | |
if (i!=0 && i%3 == 0) returns += ","; | |
} | |
returns; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment