In this case I'm going to suggest using the search option
eg:
Code:
on *:join:#:{
echo -a $nick $iif($read(levels.txt,s,$nick),has a level of $read(levels.txt,s,$nick),doesn't have a custom level)
} 


You don't specify what modes you want set on what levels, so the above will show you the nick of the person that joined and their level (if applicable)

Just make a text file called levels.txt and format it as you specified in your request.