When returning a Boolean you can do the validation inside the return statement. Usually I would do something like this: Instead, you could shorten it down to only one line of code like this: doTest will return true if someValue is greater than otherValue. Pretty neat huh?
A useful little snippet of code for when you want to copy text to the clipboard: Where source is the id of e.g. a text field.