• Admin User 5120
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi,

I'm trying to execute a piece of apex code in workbench and 
system.debug('a || b');

is printing
a || b instead of a || b

Any idea how to retain |.

I tried escaping but escaping | with backslash \| is not permitted.

Background: I'm trying tooling api to create a VF page at runtime. My VF page has a logical OR condition and I was hoping to use a cleaner OR conditions instead of negatory AND conditions.
Hi,

I'm trying to execute a piece of apex code in workbench and 
system.debug('a || b');

is printing
a || b instead of a || b

Any idea how to retain |.

I tried escaping but escaping | with backslash \| is not permitted.

Background: I'm trying tooling api to create a VF page at runtime. My VF page has a logical OR condition and I was hoping to use a cleaner OR conditions instead of negatory AND conditions.