diff --git a/Public/Other/Get-WordCustomProperty.ps1 b/Public/Other/Get-WordCustomProperty.ps1 index dd96f77..6294cb3 100644 --- a/Public/Other/Get-WordCustomProperty.ps1 +++ b/Public/Other/Get-WordCustomProperty.ps1 @@ -4,7 +4,7 @@ [Xceed.Document.NET.Container]$WordDocument, [string] $Name ) - if ($Property -eq $null) { + if ($null -eq $Property) { $Data = $WordDocument.CustomProperties.Values } else { $Data = $WordDocument.CustomProperties.$Name.Value