FORUMS: list search recent posts

# Need a assist to understand this expression lines

FAQ   •   VIEW ALL
 Need a assist to understand this expression lines on Mar 10, 2016 at 8:23:18 pmLast Edited By Adam levine on Mar 11, 2016 at 5:08:05 pm

Can anyone explain these expression lines in the Ease Wizz expressions? Please explain me every things & every lines in that expression lines. I think Master Dan can give me a help.

Ease Wizz In Expo
```function easeandwizz_inExpo(t, b, c, d) { return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; }```

Ease Wizz Out Expo
```function easeandwizz_outExpo(t, b, c, d) { return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; }```

Ease Wizz InOut Expo
```function easeandwizz_inOutExpo(t, b, c, d) { if (t==0) return b; if (t==d) return b+c; if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; }```

 Re: Need a assist to understand this expression lineson Mar 12, 2016 at 11:01:10 pm

`return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;`
this code is a different if expression. means;
```if(t==0){ return b; }else{ return c*something+b; }```
such as
`value = (a==1) ? "hello":"bye";`
same
`if(a==1){ value = "hello"; } else {value = "bye";} `

These codes make a value easein, easeout and easeinandout