< Back

Test-IsEmpty

Sat Jan 18, 2020 7:20 pm

NAME Test-IsEmpty



SYNOPSIS

Tests if a value is empty - the value can be of any type.





SYNTAX

Test-IsEmpty [[-Value] <Object>] [<CommonParameters>]





DESCRIPTION

Tests if a value is empty - the value can be of any type.





PARAMETERS

-Value <Object>

The value to test.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Boolean





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>if (Test-IsEmpty @{}) { /* logic */ }















RELATED LINKS