Resolve-PodeValue
SYNOPSIS
Resolves a query, and returns a value based on the response.
SYNTAX
Resolve-PodeValue [-Check] <Boolean> [[-TrueValue] <Object>] [[-FalseValue] <Object>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
Resolves a query, and returns a value based on the response.
EXAMPLES
EXAMPLE 1
$Port = Resolve-PodeValue -Check $AllowSsl -TrueValue 443 -FalseValue -80
PARAMETERS
-Check
The query, or variable, to evalulate.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-FalseValue
The value to use if evaluated to False.
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-TrueValue
The value to use if evaluated to True.
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.