November 2018
Intermediate to advanced
566 pages
17h 15m
English
Open a new PowerShell file in Visual Studio Code:
$Date = Get-Dateif ($Date.DayOfWeek -in 'Saturday', 'Sunday') { Write-Host 'We party on weekends!' -BackgroundColor Yellow -ForegroundColor Black}
$Date = Get-Dateif ($Date.DayOfWeek -in 'Saturday', 'Sunday') { Write-Host 'It is a weekend!'}else { Write-Host 'It is a weekday.'}
$Date = Get-Date
if ($Date.DayOfWeek -in 'Saturday', 'Sunday') { Write-Host 'We party on weekends!' -BackgroundColor Yellow -ForegroundColor ...Read now
Unlock full access