How to use method in v-if conditional rendering

Hi every one how can use a method in v-if conditional rendering ?

here is my code

        v-if="chooseImage === true"
        class="storyWrapper__contentBodyPostImage storyWrapper__contentBodyPostImageAlign_center">
        <img :src="require(`../../assets/images/blog/stories/${getImgPath}/shoes-2.jpg`)">
      </figure> ```


here is my method

```chooseImage(media) {
      return media;
    }```

Just like regular javascript:

v-if="chooseImage(something) === true"

its not working on my side :expressionless:

Is media equal to true in both type and value?

yes James
but i allready fixed it thanks by the way

i have the same problem.
could tell me how did you solve yours .
thanks