+ Reply to Thread
Results 1 to 1 of 1
  1. Instructiuni conditionale [JavaScript]

    #1
    VIP ~TraNda~'s Avatar
    Member since
    Feb 2014
    Location
    WarGods
    Posts
    12,099
    Last username
    LiOn. ~JoK3r ~
    Blog Entries
    4
    Mentioned
    95 Post(s)
    Achievements Days Registered 4 Mentions Received 2 Mentions Received 1 Mentions Given 4 Mentions Given 3 Mentions Given 2 Mentions Given 1 Threads Rating Received 1
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    Instructiuni conditionale [JavaScript]

    Cu ajutorul instructiunilor conditionale putem face un script care sa ia singur decizii pe baza anumitor conditii puse de noi. Aceste instructiuni sunt:
    • Instructiunea if
      Aceasta este cea mai folosita conditie. Structura este:
      HTML Code:
      You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!
      daca conditia nu este indeplinita se va sari peste aceasta etapa.
      Exemplu:
      HTML Code:
      You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!
    • Instructiunea if ... else
      Aceasta instructiune ajuta la adaugarea unui cod ce va fi executat daca instructiunea if nu este indeplinita. Structura este:
      HTML Code:
      You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!
      Exemplu:
      HTML Code:
      You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!
      Acest cod va afisa:
      Buna ziua
    • Instructiunea switch
      Aceasta instructiune este folosita pentru a compara o valoare cu alta dintr-o lista.
      Exemplu:
      HTML Code:
      You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!
      Acest cod va afisa:
      Ma numesc Bogdan
      Comanda break opreste citirea codului mai departe atunci cānd se ajunge la ea.
      Comanda default executa un cod in caz ca nu este indeplinita nicio executie case.


    NEXT TUTORIAL: You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!

    TAGS
    Turorial JavaScript , if , switch , instructiuni java , romana java , if else , Tutoriale WarGods
    Last edited by ~TraNda~; 05-02-2016 at 10:08 PM.
    -------------

    TraNda - WarGods | R.R.M - AngeL - LiOn. - pichacku - Jok3r - UnicA

    P A C E

    DISCORD: unknown.cfg


Posting Permissions

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

Partners
Humble Monthly Bundle
Voucher PC-Garage