Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions what does the “;” mean at the end of a line in an expression?

  • what does the “;” mean at the end of a line in an expression?

    Posted by Michael Duff on May 25, 2006 at 7:02 am

    I’ve been tinkering on expressions….mostly chopping up bits and putting together pieces to make expressions. I’m quite comfortable making up simple expressions that link different properties together and manipulate them in interesting ways. But it just occurred to me that I don’t really know why we put a “;” at the end of some lines. what is saying? I usually do an expression check and then just put them where is says “; expected”

    thanks

    Mylenium replied 19 years, 11 months ago 3 Members · 2 Replies
  • 2 Replies
  • Mrs Longstocking

    May 25, 2006 at 7:39 am

    Hi,
    I’m not very experienced in Expressions myself but from what I know about JavaScript (which is the base for the Expression Language)I gather the semicolon (‘;’) is used to simply end a statement. So if you use a one line statement there’s no need to end it because there is no further code it needs to be seperated from (it shouldn’t hurt either if you put it after a one line piece of code). Though the machine won’t notice you began a new line of code if you don’t put this indicator.

    This is probably all not too precise and maybe one of them masters of expressions can tell you some more about it. Anyway, I hope I could help out for now.
    cheers

  • Mylenium

    May 25, 2006 at 9:20 am

    The semicolon closes functions and variable definitions, telling the expression engine to not look for further code.

    Mylenium

    [Pour Myl

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy