I'd like to do the following; save a code snippet so I can use it in multiple spaces later in the script so I don't have to copy and paste it into all subsequent if statements:
(Save Code [how do I do this]):
{
Condition 1
&& Condition 2
}
if ( Condition 3
&& Condition 4
&& (Saved Script)
)
{
//do something
}
if ( Condition 5
&& Condition 6
&& (Saved Script)
)
{
//do something
}
Thank you!
Comment