Nunjucks Check If In Array

[Solved] Nunjucks Check If In Array | Solidity - Code Explorer | yomemimo.com
Question : nunjucks check if in array

Answered by : kostas-minaidis

/*---- Nunjucks: Check if value is in Array ---------------------------*/
{% if 'add_user' in user_params %} do stuff in html
{% endif %}
/*---------------------------- Nunjucks: Check if value is in Array ---*/

Source : https://stackoverflow.com/questions/43339091/check-if-key-exists-in-array-in-nunjucks-template-node-js | Last Update : Mon, 14 Mar 22

Answers related to nunjucks check if in array

Code Explorer Popular Question For Solidity