The condition wizard

You can start the wizard from the BlueParq Designer or the BlueParq Editor.

BlueParq Designer

  1. Press the right mouse button, the BlueParq Radial Menu will present itself.

  1. Press the Add condition button

Trick: CTRL-5

Press the CTRL and 5 key simultaneously to call the wizard directly

BlueParq Editor

  1. In the Bottom Navigation bar of the BlueParq Editor, click the Show condition wizard button

Trick: CTRL-5

Press the CTRL and 5 key simultaneously to call the wizard directly

Create a variable first

  1. In order to work with the condition wizard, you first have to create a variable assignment.
  2. The fastest way is to click on the sign of the Variables node.
  3. Create a string, just like the example below.

  1. Press Save to add the variable.

The condition wizard

  1. After opening the wizard the following screen will be displayed:

  1. Choose the kind of condition by clicking on the green label (Equals)
  2. In the text field add the condition to check against (as an example) Hello World.
  3. Press Finish.

Result in the BlueParq Designer

  1. In our example we will add two cmdlet blocks, one in the True and one in the False block.
  2. Press the right mouse button in the True group, the BlueParq Radial Menu will present itself.
  3. Press the Add cmdlet call button and press Echo in the search field. Also checkout the cmdlet wizard tutorial here.
  4. Press Echo under Alias and press Next.
  5. Make sure you add The same in the InputObject text box.
  6. Press Finish.
  7. Press the right mouse button in the False group, the BlueParq Radial Menu will present itself.
  8. Press the Add cmdlet call button and press Echo in the search field. Also checkout the cmdlet wizard tutorial here.
  9. Press Echo under Alias and press Next.
  10. Make sure you add Not the same in the InputObject text box.
  11. Press Finish.

Result in the BlueParq Editor

[String] $StringHelloWorld = 'Hello World'

If ($StringHelloWorld -eq 'Hello World')
{
 Microsoft.PowerShell.Utility\Write-Output -InputObject 'The same'
}
Else
{
 Microsoft.PowerShell.Utility\Write-Output -InputObject 'Not the same'
}

Result in PowerShell

Was this article helpful?
0 out of 0 found this helpful