Update 2018
Starting with Adaxes 2018.1 it is possible to have Else If and Else blocks in business rules, custom commands and scheduled tasks. This way you can have conditions combined the way you need. For examples, have a look at section Else If and Else Blocks of the following tutorial: https://www.adaxes.com/tutorials_AutomatingDailyTasks_AutomateUserProvisioning.htm.
Original
Hello,
Currently it is impossible to combine conditions with AND or OR operators. However, you can use the If PowerShell script returns true condition.
Here is the script for the condition:
$Context.ConditionIsMet = $False
try
{
$department = $Context.TargetObject.Get("department")
}
catch
{
$department = $NULL
}
if ($department -ieq "Marketing")
{
$Context.ConditionIsMet = $True
return
}
try
{
$value = $Context.TargetObject.Get("adm-CustomAttributeText1")
}
catch
{
$value = $NULL
}
if ($value -ieq "Yes")
{
$Context.ConditionIsMet = $True
}