I'm working on a html report for users on my wordpress website taking watupro quizzes. By default watupro has a shortcode (%%-CATEGORY-POINTS-X%%) (where x refers to a specific set of questions), which when plugged on the report, will automatically give the total points for x-category. Since those points varies a lot by subscales, I would like to replace each of those value by a conditional statement. In the present case, when %%-CATEGORY-PONTS-X%% = 1, I would like to replace the 1 by A, a 2 by B, a 3 by C and so on.

My current attempt at integrating a php code did not go so well. Anyone know what I am missing in this code? Thank you

```
<?php
$management = '%%CATEGORY-POINTS-1%%';
switch ($management) {
case '1':
echo 'A';
break;
case '2':
echo 'B';
break;
case '3':
echo 'C';
break;
default:
echo 'D';
break;
}
?>

```

Edit: Sorry I didn't explain myself well. %%CATEGORY-POINTS-X%% could be interpreted as %%CATEGORY-POINTS-MANAGEMENT%%, which gives a value from 1 to 10 based on the number of points a user obtained for the management subscale. I have multiple subscales (leadership, empathy, etc.) and they each have their ID (from 1 to 10, and to call to them I replace the x value by the appropriate ID).