-4

I'm having problems on this sentences via powershell script.

if ($prob -eq "Yes") { $square.show; } else { $square.hide; }

The output does not function with this sentences. May I know the solutions please?

Thanks.

Output

Show the square shape if the requirement is "Yes"

Hide the square shape if the requirement is "No"

CJP
  • 15
  • 4
  • 1
    Please see [How to ask a good question](https://stackoverflow.com/help/how-to-ask). What have you tried so far, and what errors/issues have you faced? StackOverflow is not a code-writing service. Ideally provide a [Minimal, Complete, and Verifiable Example](https://stackoverflow.com/help/mcve) – G42 Jun 27 '17 at 10:53
  • This should be possible via [Visio SDK](https://www.microsoft.com/en-us/download/details.aspx?id=51221). – vonPryz Jun 27 '17 at 10:54

1 Answers1

-1

Hope this article can help: Is It Possible to Automate Microsoft Visio?

And another few links

Surrogate
  • 687
  • 7
  • 11