What is difference between a! and fn! ?

?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Hi  there are few differences between a! and fn! as mentioned below:

    1. You can access Custom Plugin expression function using fn! whereas you cannot do the same by using a! e.g: fn!isusernametaken(....)
    2. You can access Boolean literal functions such as true(), false() using fn! whereas you cannot do the same by using a! e.g: fn!true()
    3. Interface/SAIL component can be invoked using a! where as cannot be invoked using fn! e.g: a!textField()
    4. Any function defined without Bang(!) notation in your expression, will be considered as fn! internally whereas you need to explicitly mention a! to define a component.

    NOTE: As per my understanding, you cannot invoke several functions using a! e.g: a!tostring(1) will throw an error whereas fn!tostring(1) (OR) tostring(1) will work as expected.

    Hope this will help.

Reply
  • 0
    Certified Lead Developer

    Hi  there are few differences between a! and fn! as mentioned below:

    1. You can access Custom Plugin expression function using fn! whereas you cannot do the same by using a! e.g: fn!isusernametaken(....)
    2. You can access Boolean literal functions such as true(), false() using fn! whereas you cannot do the same by using a! e.g: fn!true()
    3. Interface/SAIL component can be invoked using a! where as cannot be invoked using fn! e.g: a!textField()
    4. Any function defined without Bang(!) notation in your expression, will be considered as fn! internally whereas you need to explicitly mention a! to define a component.

    NOTE: As per my understanding, you cannot invoke several functions using a! e.g: a!tostring(1) will throw an error whereas fn!tostring(1) (OR) tostring(1) will work as expected.

    Hope this will help.

Children
No Data