I assume you really mean "optional", not just a parameter with a default value, although I can't really see the difference.
Sub mySub(parm1 as String, parm2=invalid)
if parm2 <> invalid then
'do more stuff
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.