try this:
if ( $dotnet45 ) { $dotnetcurrent -eq $true }
if ( $dotnet451 ) { $dotnetcurrent -eq $true }
I think this will work too:
if ($dotnet45 -or $dotnet451 ) { $dotnetcurrent -eq $true }
if ( $dotnet45 ) { $dotnetcurrent -eq $true }
if ( $dotnet451 ) { $dotnetcurrent -eq $true }
I think this will work too:
if ($dotnet45 -or $dotnet451 ) { $dotnetcurrent -eq $true }