how to ask if in two categorys inside if

You can specify multiple categories within has_category like so:

if ( has_category( array( 'category_1', 'category_2' ) ) {
    // do something
}

However, I am not sure if this acts as AND or OR, meaning does it require that ALL categories specified are matched, or one of the X supplied (category_1 OR category_2).

In any case, your syntax should work perfectly fine. double check on the spelling perhaps?