Check if Page=current user page via shortcode

I don’t know how you are assigning a page to the user, however you can develop a short-code as following:

<?php

   function myFunction()
   {
       if({condition check})
       {
         /*do ur stuff */
       }
       else
       {
         /*do ur stuff */
       }
   }

   add_shortcode('your_shortocde_string', 'myFunction');

?>

Define the function in functions.php
You can call by using shortcode [your_shortcode_string]

I hope this will be helpful.
Happy Coding 🙂