Below is the code snippet I am working with:
JavaScript
let Names = [
{
Name: "Josh"
FullName: ""
},
{
Name: "Jonathan"
FullName: null
},
{
Name: "James"
FullName: "James Johnson"
}
];
Index.Vue
<ul>
<li
v-for="item in Names"
v-if=" item.FullName != null || item.FullName != '' "
>
{{FullName}}
</li>
</ul>
The code
v-if=" item.FullName != null || item.FullName != '' "
seems to be ineffective. Can you explain why it's not working and suggest a way to include two conditions within a v-if
statement?