CheckRegisteredRole(UserId:) or CheckRegisteredRole()

Good,

I had a question, I hope you can help me.

What is the difference of putting:

CheckRegisteredRole(UserId:)

and

CheckRegisteredRole ()

Thank you.



Hi,

Both are one and the same, in fact all below result are same

  1. CheckRegisteredRole()
  2. CheckRegisteredRole(getuserid())
  3. CheckRegisteredRole(UserId:getuserid())
  4. CheckRegisteredRole(Userid:)

whenever you have optional parameter you can choose to ignore it, if you do ignore it will take the default value; in case of CheckRegisteredRole it's the userid of the logged in user.

Best example is Index function it has below inputs 

but when I code it as below it takes the default value for startIndex and searchFromEnd input parameters

Index("seArch","a",ignoreCase:True)


Regards.