Ah I see. Thanks so much. Managed to solve it by using this:
IF %JOSEOPI<25 THEN IF %DAVIDOPI<5 THEN IF %ANNAOPI<25 THEN $PAGETEXT := "Unfortunately, it seemed that none of the villagers trusted Bob enough to ask him along for their daily activities."
Oddly enough, I had to use Then-If chains for all the variables rather than just for the last one (even though it should work with 2 operations) as the below script did not work:
IF %JOSEOPI<25 AND %DAVIDOPI<5 THEN IF %ANNAOPI<25 THEN $PAGETEXT := "Unfortunately, it seemed that none of the villagers trusted Bob enough to ask him along for their daily activities."
Regardless, thanks for the help!