I am working on a function, i'm at a point where i have two variables, only one of them will have a value, the other is $null. I want to use the variable that has a value in the following code. What is the fastest or most efficient, or best way to determine this.
I know i can do an if-else condition, but i'd prefer something more classy if possible. My mind is wondering if there is such a thing as "for which ever of these two vars has a value, do this"