Guest User

Untitled

a guest
Feb 17th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. //Copies video link
  2. ifQ(672)
  3. .answered()
  4. .setValue(Q(1441), Q(672))
  5.  
  6. //pickup mileage minus drop-off mileage equals mileage differential
  7. ifQ(881)
  8. .answered()
  9. .andQ(431)
  10. .answered()
  11. .sub(Q(881),Q(431))
  12. .store(Q(891))
  13.  
  14. //if online scheduling available, show questions
  15. ifQ(81)
  16. .answered(1)
  17. .appear(Q(1851),Q(1861),Q(1871),Q(1881),Q(1891),Q(1901),Q(1911))
  18.  
  19. //if online scheduling unavailable, show questions in sections A1 - A5
  20. ifQ(81)
  21. .answered(2)
  22. .appear(Section(2),Section(3),Section(4),Section(5),Section(6))
  23.  
  24. //if online scheduling unavailable, show questions
  25. ifQ(81)
  26. .answered(2)
  27. .appear(Q(21),Q(31),Q(41),Q(51),Q(61),Q(71),Q(1931))
  28.  
  29. //(QC Section) if Question a1 answered YES, the show Question a2, a3, and short text question
  30. ifQ(791)
  31. .answered(1)
  32. .appear(Q(801), Q(811), Q(821))
  33.  
  34. //(B3 Section) if Question f answered either YES, then show Time Given question
  35. ifQ(721)
  36. .answered(2,3)
  37. .appear(Q(731))
  38.  
  39. //(E Section) if Question d answered YES, then show Question d1
  40. ifQ(1031)
  41. .answered(1)
  42. .appear(Q(1041))
  43.  
  44. //(E Section) if Question g answered NO, then show Question g1
  45. ifQ(1071)
  46. .answered(2)
  47. .appear(Q(1081))
  48.  
  49. //(E Section) if Question h answered NO, then show Question h1
  50. ifQ(1091)
  51. .answered(2)
  52. .appear(Q(1101))
  53.  
  54. //(E Section) if Question i answered YES, then show Question i1
  55. ifQ(1111)
  56. .answered(1)
  57. .appear(Q(1121))
  58.  
  59. //(F Section) if Question a answered YES, then show explanation question
  60. ifQ(1211)
  61. .answered(1)
  62. .appear(Q(1221))
  63.  
  64. //Calcs elapsed time between the arrival and the greeting
  65. ifQ(2101)
  66. .answered()
  67. .andQ(2111)
  68. .answered()
  69. .sub(Q(2111),Q(2101))
  70. .store(Q(2061))
  71.  
  72. //sets answer to Question C1 based on elapsed time
  73. ifQ(2061)
  74. .greaterThan(59)
  75. .setValue(Q(491),1)
  76.  
  77. ifQ(2061)
  78. .greaterThan(30)
  79. .andifQ(2061)
  80. .lessThan(60)
  81. .setValue(Q(491),2)
  82.  
  83. ifQ(2061)
  84. .lessThan(31)
  85. .setValue(Q(491),3)
  86.  
  87. //Calcs elapsed time from the greeting to the beginning of the write-up process
  88. ifQ(2111)
  89. .answered()
  90. .andQ(2121)
  91. .answered()
  92. .sub(Q(2121),Q(2111))
  93. .store(Q(501))
  94.  
  95. //if no write-up process, disappear write-up process timestamp and elapsed time
  96. ifQ(2171)
  97. .answered(2)
  98. .disappear(Q(501))
  99.  
  100. //RuleZ Versioned Out 8/31/2018
  101. //if shopper wasn't escorted, disappear escort timestamp and Question E
  102. ifQ(2181)
  103. .answered(2)
  104. .orifQ(2181)
  105. .answered(3)
  106. .disappear(Q(2131), Q(2141), Q(2081))
  107.  
  108. //RuleZ Versioned Out 8/31/2018
  109. //if the shopper wasn't escorted, Question E is set to NO
  110. ifQ(2181)
  111. .answered(2)
  112. .setValue(Q(2071), 2)
  113.  
  114. //Calcs elapsed time between arrival and escort
  115. ifQ(2131)
  116. .answered()
  117. .andQ(2101)
  118. .answered()
  119. .sub(Q(2131),Q(2101))
  120. .store(Q(2141))
  121.  
  122. //if Question E is YES, hide Question E1
  123. ifQ(2071)
  124. .answered(1)
  125. .disappear(Q(2081))
  126.  
  127. //(Vehicle Delivery Process) Hides Question B if the answer to Question A is YES or N/A
  128. ifQ(1001)
  129. .answered(1,3)
  130. .disappear (Q(1011))
Add Comment
Please, Sign In to add comment