Sc_error_message not working

Hi, we have an if condition with sc_error_message inside it. But the function is giving error.
We recently update scriptcase to scriptcase 9. Before it was working fine. Currently we are using scriptcase 9.06.0007.
Here is the code. Also see the error screenshot.

if ({are_stock_items_affected}=='yes' && !in_array({sub_sub_category_of_ledger},array("Purchases","Sales_from_operations")))
{

	sc_error_message("sorry stock itam can only be affected in supply in and supply out of goods");
sc_error_exit();
 }

Thanks.

it was my mistake,
i had written = sign in code above this code…
sc_error_message=("…");

ty all.