Forums

Force a condition in DB Read Action

rjrinc 13 Sep, 2016
Hello,

I was wondering if it is possible to force a condition in the DB Read action. I would like it to be able to make it go to the on_not_found event in the action. Is it possible to put some code to force this? For example in the DB Read condition,

if (something not true)
{
// code to force to the on_not_found event/logic in the DB Read Action.
}
else
// everything is true
{
return as normal and proceed to the on_found event/logic in the DB Read Action.
}

Any help if this is possible or not would be great! Thanks!
GreyHead 14 Sep, 2016
Hi rjrinc,

In the first case make the condition one that can't ever be valid. Something like
return array( 1 => 2);
I think that will do what you need.

Bob
This topic is locked and no more replies can be posted.