Quantcast
Channel: Adobe Community : Popular Discussions - After Effects Expressions
Viewing all articles
Browse latest Browse all 47983

Add a 0 in front of a number

$
0
0

Hello,

 

I am using a simple expression to make a calendar, going from 1 to 31

Until the number 10 i would like to display a 0 in front of the number.

Unfortunately everything I am trying doesn't work.

 

Here is the expression:

 

v=time/thisComp.frameDuration;

t = (v%31)+1;

if (t >0 && t < 10){

value=""+"0"+t;

}else{

value=t;}

 

I am on AE CC with Mac maverick.

 

Thanks

NIco


Viewing all articles
Browse latest Browse all 47983

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>