Announcement

Collapse
No announcement yet.

How can I use a raw variable in an if statement?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Originally posted by Andy View Post
    klh you're a genius! Your example works perfectly. I do need to make sure $my_preregistered_variable is always a variable and if the user doesn't have anyone on their ignore list I assign $my_preregistered_variable to be an array wih one value that is 0.

    I greatly appreciate your help on this.

    Also thank you Mark for your help too.
    That's ok - I got every answer wrong though! I have often said I'm no good at this coding lark, people shouldn't really listen to me. Disaster will ensue!
    MARK.B | vBULLETIN SUPPORT

    TalkNewsUK - My vBulletin 5.5.6 Demo
    AdminAmmo - My Cloud Demo

    Comment


    • #32
      Originally posted by Mark.B View Post
      That's ok - I got every answer wrong though! I have often said I'm no good at this coding lark, people shouldn't really listen to me. Disaster will ensue!
      Coding is always done by trial and error, so even tips that don't pan out are extremely helpful.

      Comment


      • #33
        Originally posted by Andy View Post
        Coding is always done by trial and error, so even tips that don't pan out are extremely helpful.
        In my case, mainly error.
        MARK.B | vBULLETIN SUPPORT

        TalkNewsUK - My vBulletin 5.5.6 Demo
        AdminAmmo - My Cloud Demo

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X