Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
JAWS Scripting Tip: Optional Parameters
Post Body

I have published the blog post JAWS Scripting Tip: Optional Parameters. I am sharing it here in the hopes that the members of the community will find it to be useful.

For those who wish to skip to the solution instead of reading the blog post, the following example explains how to specify a default value for optional parameters in a JAWS script function.

string function GetFavoriteNumberMessage(optional int number)
    if (GetVariantType(number) == VT_EMPTY)
      number = 42
    endIf
    var string message = FormatString("Hello. My favorite number is %1. What is your favorite number?", number)
    return message
endFunction

Author
Account Strength
80%
Account Age
3 years
Verified Email
Yes
Verified Flair
No
Total Karma
3,981
Link Karma
181
Comment Karma
3,785
Profile updated: 3 days ago
Posts updated: 4 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago