Results 1 to 2 of 2
  1. #1
    lenaz is offline Member
    Join Date
    Jul 2009
    Posts
    1
    Rep Power
    0

    Default IF-Condition in a String

    Hi there!

    i have conditions/rules saved in a database and i have to implement them in my java-code...

    such a rule looks like this:
    Java Code:
    {1668} AND ({1089} OR {1090} OR {1091} OR {1102} OR {1106} OR {1253} OR {1669} OR {1670} OR {1671} OR {1672} OR {1673} OR {1674} OR {1675} OR {1676} OR {1677} OR {1678} OR {1679} OR {1680})
    converting the rule is no problem ... so i can parse it so that it becomes this
    Java Code:
    true && (true || false || true || ..........)
    now i dont know how i can handle a string-variable containing such a rule...

    can you help me?

    friendly greetings,
    lenaz

  2. #2
    corlettk is offline Member
    Join Date
    Apr 2009
    Location
    Brisbane
    Posts
    86
    Rep Power
    0

Similar Threads

  1. Best Practices of handling more number of if..elseif.. Condition
    By gavaskarrathnam in forum Advanced Java
    Replies: 16
    Last Post: 01-28-2011, 10:25 AM
  2. JFrame (closing under a condition)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-12-2008, 11:17 AM
  3. problem with using string in if condition
    By sireesha in forum New To Java
    Replies: 2
    Last Post: 11-20-2007, 10:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •