in vain

definition: to no avail
example: I tried to score from half court in vain.
speech part: adverb
synonyms: vainly

How in vain is being used?