How do I create and if/else statement in photoshop?

  • 1
  • Question
  • Updated 4 years ago
How do I create and if/else statement in photoshop to see if all the pixels touching the right and left edge of the canvas are RGB 255,2555,255. If so, run this action. If not, run that action.
Photo of peter chen

peter chen

  • 4 Posts
  • 0 Reply Likes
  • happy

Posted 4 years ago

  • 1
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 812 Reply Likes
You can't do something at the pixel level easily without writing a plugin.

But you could probably read the histogram in javascript and make that decision.
Photo of peter chen

peter chen

  • 4 Posts
  • 0 Reply Likes
Okay, thanks :)

I don't know how to code, so I was vaguely hoping someone was able to point me to some pre-written script that I can copy and paste.

I guess I will try one of the online freelance websites to see if I can find someone to build it out for a fee.