How to retreive values from a multiple picklist?

We want to display a custom block of rich text in an email depending on a field which is a multiple picklist.

How to retreive these picklist values to create the right code for displaying the block if the criteria is met ?
Here is the code we are using :

{% if contact.unknown_services %}

<p>The unknown_services field is filled in for this contact.</p>

{% else %}

<p>The unknown_services field is filled in for this contact.</p>

{% endif %}

Thank you very much for any kind of help

Thank you Daniel for this reply !
But the final goal is to send a personnalized email to the contact.
Like if the contact has checked 1 item in the picklist that we want to retreive, then there will be only 1 block displaying in the email. If 3 items checked, then 3 blocks appears.

Is there a HUBL function that allows you to search for a small piece of text within a large text?

To retrieve values from a multiple picklist, you typically need to iterate through each selected option and extract its value. Depending on the programming language or platform you’re using, there are different methods to accomplish this task. For example, in Salesforce Apex, you would use methods like .getSelectedValues() to retrieve selected options from a multiple picklist field. Here’s a pseudocode example in Javascript&colon; javascript Copy code // Assuming ‘picklistValues’ is an array containing selected values from the multiple picklist let picklistValues = [“Option 1”, “Option 2”, “Option 3”]; // Iterate through the array to retrieve each selected value for (let i = 0; i < picklistValues.length; i++) { let selectedValue = picklistValues[i]; // Do something with the selected value, like printing it console.log(selectedValue); } As for oven repairs Hamilton, it’s crucial to ensure that your appliances are functioning well to avoid any inconvenience. If you’re experiencing issues, seeking professional repair services can help maintain the efficiency and safety of your appliances. Make sure to choose a reputable repair service in your area for the best results.

Retrieving values from a multiple picklist allows you to access selected options from a list of choices. This functionality is essential for extracting user preferences, filtering data, or customizing user experiences based on their selections. By understanding how to retrieve values from a multiple picklist, developers can effectively manage and utilize user input in various applications purpose words.