drupal - Opposite of php integer -


i have script:

if ($flag && $flag->is_flagged(arg(1))) {   return true; } 

how can return true if not flagged? please me.

add not condition !

if ($flag && !$flag->is_flagged(arg(1))) {     return true; } 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -