Use ternary in get_response_from_Script