ifchain_forloop.rsx 413 B

123456789101112131415161718192021222324252627
  1. rsx! {
  2. // Does this work?
  3. for i in b {
  4. // Hey it works?
  5. div {}
  6. }
  7. // Some ifchain
  8. if a > 10 {
  9. //
  10. div {}
  11. } else if a > 20 {
  12. h1 {}
  13. } else if a > 20 {
  14. h1 {}
  15. } else if a > 20 {
  16. h1 {}
  17. } else if a > 20 {
  18. h1 {}
  19. } else if a > 20 {
  20. h1 {}
  21. } else if a > 20 {
  22. h1 {}
  23. } else {
  24. h3 {}
  25. }
  26. }